Hello,
The name of the pdf file uploaded to Dropbox service is not saved to a table in database.
You can change the name of pdf files generated for a specific forms if you follow this instructions:
Go to \components\com_breezingforms\ and open the file facileforms.process.php.
Around line 5129 you have to replace this code:
$pdfname = $this->uploads . '/ffexport-pdf-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.pdf';
with this one:
if($this->formrow->name=='formname'){
$pdfname = 'wantedname.pdf';
}
else{
$pdfname = $ff_compath . '/exports/ffexport-pdf-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.pdf';
}
If you want to apply the change to all forms, you don't need the if statement. In that case just change the
$pdfname variable.
NOTE: This will give the same name to all the pdf-files so only the first pdf-file will be saved to dropbox and others wont't because they will have the same name. That is why I suggest that you use something like this:
$recnr=$this->record_id ;
$pdfname = 'wantedname_' . $recnr . '.pdf';
This will add the number of that record to the end of the pdf-file name, for example,
wantedname_25.pdf and, since you know the record id from facileforms_records table, you will know which pdf file to look for for a specific record.
I hope that will work for you. Let me know if that is what you wanted to achieve?
You could also create a new table in your database which would have two rows, one containing record unique id, and another one containing pdf-file name. But the first solution is simpler.
If you have more questions, feel free to ask.
Regards,
Mihaela