How to create a table with forminator repeater fields values ?

Forminator Forms
29 November, 2023 02:25:26
Eldervand
Topics: 1
Messages: 3
Hi !

First of all, I would just like to clarify that I am very new to creating a website so I might use incorrect words, sorry in advance !

Using forminator, I created a form where users can enter data about guests (name, birthdate, postal address, ...), and using repeater fields, they can add as many as they want.

I would then like to create a pdf file with the guests' list and with all their data in a table. I would also like the table to have the good number of rows (otherwise I guess I could create a template with 100+ rows, but that's not the goal haha). How could I do it ?

Many thanks in advance !

Eld.
29 November, 2023 05:50:44
E2Pdf
Support
Topics: 7
Messages: 3331
Hello,

1. It must be used the "HTML" object, with the "Multipage" or "Parent / Child" settings.

Disable WYSIWYG Editor option is required to be checked.

2. Inside the "HTML" object it must be used Forminator Forms repeater shortcode as:

<table>
{foreach:group-1}
<tr><td>{text-1}</td><td>{email-1}</td></tr>
{/foreach:group-1}
</table>

Where:
group-1 - is the Group Field Slug
{text-1}, {email-1} - are Inner Field Slugs

https://e2pdf.com/docs/extensions/forminator-forms#group-field

See please the screenshot with the example attached.
We would really appreciate your feedback at WordPress.org!
30 November, 2023 00:10:51
Eldervand
Topics: 1
Messages: 3
Thank you for your answer !

It seems to work ! However, the number of rows that can appear seems to be limited to the size of the HTML object. Is there a way to make the object "grow" everytime a new row has to be added ?
30 November, 2023 00:51:53
E2Pdf
Support
Topics: 7
Messages: 3331
Hello,

Unfortunately no, it must be predefined the size of the "HTML" object due to the structure of E2Pdf. The only option to keep undefined rows of data is to use "Multipage" or "Parent / Child" options. In 1st case, it will duplicate the page and will continue content, or in 2nd case, it can continue content to the created "child" HTML block. Features would work with the paid License Key plan as the "FREE" version has a limitation to create "single" paged PDFs.
We would really appreciate your feedback at WordPress.org!
3 December, 2023 02:12:28
Eldervand
Topics: 1
Messages: 3
Thanks !

So, even with the paid licence, my PDF would always be a few pages long, even if there are only a few entries, due to the HTML objects having to be inserted ?
3 December, 2023 11:10:01
E2Pdf
Support
Topics: 7
Messages: 3331
Hello,

In the case of the "Parent" / "Child" option, additional settings allow to hide empty pages Hide Page (If Empty): https://e2pdf.com/docs/elements/html/parent-child#additional-settings

In the case of using the "Multipage" option - it will only duplicate the page in case if the content does not fit in the "HTML" block, and will do it till all data is printed.
We would really appreciate your feedback at WordPress.org!