Can pdf name be unique like this example
-
Unique names
uses the mPDF PHP class:
you want your pdf filenames to be unique, add this filter to your my_template.php file:function custom_pdf_filename($pdf_filename) { $pdf_filename = 'my_template-' . FrmProEntriesController::get_field_value_shortcode(array('field_id' => x, 'entry_id' => 'entry')) . '.pdf'; return $pdf_filename;} add_filter('mpdf_output_pdf_filename', 'custom_pdf_filename');wanting to know if I can add a function to do the same so that when a client downloads the form entry that it has it’s own name and not overriding the last downloaded form.
Thanks.
The topic ‘Can pdf name be unique like this example’ is closed to new replies.