How can i get the Record ID when i submit a form with JRequest::getCmd feature an use it as a filename of uploaded file attached with the form?
I want something like this:
$filename = JRequest::get('cf_id', 'blank', 'post').'.doc';
When i write the above line in FileName format field of a Chronoform it always upload a file with blank.doc as a filename. For example, if the record id is 26 then i would like to have a filename like this 26.doc. How can i grab this info from cf_id column of a stored table in sql? The cf_id number is generated automatically from the system.
I want something like this:
$filename = JRequest::get('cf_id', 'blank', 'post').'.doc';
When i write the above line in FileName format field of a Chronoform it always upload a file with blank.doc as a filename. For example, if the record id is 26 then i would like to have a filename like this 26.doc. How can i grab this info from cf_id column of a stored table in sql? The cf_id number is generated automatically from the system.