Select just one dataset of a repeat group

Forminator Forms
29 March, 2023 02:06:44
jeff22150
Topics: 1
Messages: 2
Hi.
(Sorry for my poor english)
Is it possible to select just one "dataset" from a repeat group in the shortcode ?

I try to explain :
I created a form with forminator. In it, I have one repeat group of fields. I want to export a pdf with only one of the repeat group (for example the second one).
I know I can do that in the template but I want to specify the one I want in the the shortcode.
something like that : [e2pdf-download id="1" dataset="1" TheRepeatGroupSelect="2"]

Thanks for your answer.
jeff
29 March, 2023 03:20:06
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

You can output separate data for repeater fields in group as:

{select-1:1}, {text-1:1}, etc for 1st repeater entry
{select-1:2}, {text-1:2}, etc for 2nd repeater entry
{select-1:3}, {text-1:3}, etc for 3rd repeater entry

and so on...

So possible solutions are:

1. Use different templates that will contain different shortcodes to output data for needed repeater entry.

or

2. You can use the "arg" attribute to bypass the repeater index, as:

[e2pdf-download id="1" dataset="1" arg1="2"]

and inside E2Pdf Template use field slugs as:

{select-1:[e2pdf-arg key="arg1"]}, {text-1:[e2pdf-arg key="arg1"]}

We remain at your service.
We would really appreciate your feedback at WordPress.org!
29 March, 2023 21:57:25
jeff22150
Topics: 1
Messages: 2
HI.
Very good job !
It's exactly what I need.

Thanks a lot.
Best regards
Jeff