Plugin Author
E2Pdf
(@oleksandrz)
Hello,
You can try to:
1. Create a “repeater” field in the Formidable Forms.
2. On the “Success Message” / “Mail Body” use the repeater iteration as:
[foreach 100]
[e2pdf-download id="1" arg1="[101]"]
[/foreach]
* where “100” is your Repeater Field ID, and “101” is the sub-field of the repeater that contains the word, and “1” is your E2Pdf Template ID.
3. Inside the E2Pdf Template use [e2pdf-arg1] shortcode to output “word”
P.S. It would generate multiple PDF download URLs where it will be just a single word from the repeater. E2Pdf can’t yet create the “single” archive with generated PDFs.
Thread Starter
ogia
(@ogia)
Awesome, thanks! This works beautifully.
Thread Starter
ogia
(@ogia)
When it generates the PDFs, the download link points to a unique file, but they all have the same name. It’s the Formidable Forms entry ID (“55.pdf” for instance). I’m also trying to save these to the server so users can access them later and only the last repeater field is showing up since it overwrites all the ones before it. Is there a place to control the name of the file that is generated? I’ve played around with several settings but haven’t found one that works with repeater data yet.
Plugin Author
E2Pdf
(@oleksandrz)
PDF Name and PDF Local Name (responsible for the save name), can be modified in the E2Pdf Templates settings: https://e2pdf.com/docs/templates/builder/settings#pdf
Thread Starter
ogia
(@ogia)
Thanks – that’s what I had found but I couldn’t get the repeater data to work there. What’s the correct syntax to use the repeater data in the filename? The closest I got was a list of the field values with a comma between them, but I couldn’t get it to use the corresponding name for each file.
Thread Starter
ogia
(@ogia)
I think I got it. I used savename=”[field_id]” in the confirmation message to change it.
Plugin Author
E2Pdf
(@oleksandrz)
In the PDF Name and PDF Local Name, the usage is the same. You should be able to use any values available in the E2Pdf Template context, for example [field_id], [e2pdf-arg1], etc.