• ogia

    (@ogia)


    I’m still learning all the functionality of E2PDF. I have several one page and multi-page documents that need to be customized with one word/name. Some users will have a list of names/words and I would like to give them the option to create them all at once rather than one at a time. I assume this is possible, but just not sure how to set up the form and template.

    Example:
    I provide the user a place to input 20 words/names.
    I want the result to be 20 personalized documents using each word/name.
    I’d also like to ensure that if they don’t need all 20, the blank fields are ignored.

    If you can point me to documentation or in the right direction I can probably figure it out. I’m just not sure how everything works yet. I am using Formidable Forms.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Oleksandr

    (@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 Oleksandr

    (@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 Oleksandr

    (@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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.