PDF Attachment Name

14 March, 2024 07:44:53
darrellwilde
Topics: 1
Messages: 3
Hi Guys

Is there a way to make the pdf attachment which I receive be named some of the fields which have been submitted by the user?

For example the form they complete asks for Name Date City.
Could the PDF attachment be named these fields?
14 March, 2024 09:10:35
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

You can change the PDF file name by modifying the "PDF Name" setting inside the E2Pdf Template: https://e2pdf.com/docs/templates/builder/settings#pdf (recommended)

It's possible to use field slugs/shortcodes that are available depending on the extension used.

You can also set the "name" attribute in the shortcode directly, for example:

[e2pdf-attachment id="1" name="PDF Name"]

* Not all extensions support using field slugs/field shortcodes inside the "name" attribute.
We would really appreciate your feedback at WordPress.org!
14 March, 2024 09:59:43
darrellwilde
Topics: 1
Messages: 3
So im currently using E2PDF with Fominator Forms plugin.

Some of the fields i want to use are: {select-1} - {text-2} - {date-1}

So would the attached image work?
14 March, 2024 10:01:20
E2Pdf
Support
Topics: 7
Messages: 3345
Yes, correct, if it would be used simple attachment shortcode [e2pdf-attachment id="1"] - you must get the PDF name based on that values.
We would really appreciate your feedback at WordPress.org!
15 March, 2024 02:16:48
darrellwilde
Topics: 1
Messages: 3
Yes it works perfect now!

Saves time renaming the pdf manually.

Thank you!