Merge Tag to retrieve a single field entry in a repeater

Hello,

I have a need for a basic repeater in gravity forms where a set of names, roles and ages can be added.

I can set that up no problems using either the native gravity forms repeater (beta) or the Gravity Wiz Nested Forms add on.

The thing is that I have tried both methods and I cannot work out how to show the entry in a single field using a merge tag with either method.

Eg. I collect the name, role and age of a person via 3 fields in the repeater. A form submission has 4 people added in the repeater field.

I just want a merge tag which will show me the name of the first person entered… and the second… and so on… separately. Note: the name is in a single text field, not an advanced name field.

This seems really really basic but I just cannot do it. All I can get is a formatted list of all entries using the standard merge tag for the repeater field ID which does not help me. I need all of the data separately.

I have tried adding another level to the merge tag with the ID of the name fields in the child form however it still just returns the same thing: all the data.

I want something like this {Nested Form Field Name:Nested Form Field ID:Child Form Field ID[0]}
Where 0 denotes the first entry and it would be 1 for the second entry and so on.
Or it could be {Nested Form Field Name:Nested Form Field ID:Child Form Field ID.1} or similar.

What am I missing? Why can’t we retrieve a single entry value, yet we can sum values of entries and count entries etc?

Please note I have read this topic Grouping Fields and Repeating Them [RESOLVED] and the OP seemed to have the same requirement however he does not elaborate on how he actually solved it.

Thanks,
Nicole

I have been able to achieve what I required using the native Gravity Forms list field with a variation of the merge tag modifier found here: gform_merge_tag_filter - Gravity Forms Documentation

I basically added extra data in the modifier in the merge tag modifier to specify which of the entries I was targeting and pull out a single field value for that entry.

Hi Nicole,

I know you already solved this, but this is supported for GP Nested Forms with our All Fields Template plugin.

You can specify a specific child form field entry using these merge tag modifiers:

{Nested Form:1:index[0],filter[1]}

filter is used to choose the field and index returns the specific entry.

2 Likes

Thanks so much for your reply. I could not find that documentation anywhere in hours of searching your docs and googling so I hope this post helps others.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.