I want to save pdf files on server made with forminator without overwriting the old file.

12 February, 2022 23:03:28
chip78
Topics: 2
Messages: 12
I want to save pdf files on server made with forminator without overwriting the old file. New file must be created and files must be kept.

Have tried everything to make it work. The old file is getting overwrited.

Can the shortcode found in this topic be used in forminator?

https://e2pdf.com/support/desk/send-to-server

Tried everything to get it to work.

e2pdf-save id="14" name="[id] - [key]"] - Where 14 is the ID of E2Pdf Template.



Can you help me please?
12 February, 2022 23:05:18
chip78
Topics: 2
Messages: 12
Forminator used for template is what I ment.
Works wonderful but not like I want it.
12 February, 2022 23:43:24
E2Pdf
Support
Topics: 7
Messages: 3188
Hi,

You need to use Forminator Field Slugs as attributes instead of Formidable shortcodes as:

[e2pdf-save id="14" name="{submission_id}"]

Important: This shortcode must be placed inside "Email Notification Body" (if you use any) and NOT in "Success Message" as unfortunately Forminator can't render {submission_id} inside "Success Message". Screenshot 1.

As an alternative you can set global PDF name inside E2Pdf Template which will use {submission_id} + any other fields data as on Screenshot 2.

{submission_id} - {email-1}

In this case you will need to use shortcode without any "name" attribute as it will be used global "unique" name to save PDF:

[e2pdf-save id="14"]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
12 February, 2022 23:56:40
chip78
Topics: 2
Messages: 12
Thank you very much for your reply. Please don’t close this ticket before I have tested this solution. Thank you for the super quick reply.
13 February, 2022 03:50:48
chip78
Topics: 2
Messages: 12
Good day :) Thank you. I used {submission_id} in E2PDF. Worked fine :)

Super quick service. Thank you very much.

13 February, 2022 03:50:50
chip78
Topics: 2
Messages: 12
Good day :) Thank you. I used {submission_id} in E2PDF. Worked fine :)

Super quick service. Thank you very much.