The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Pass entry
Hi guys, I am trying to find if there is a way to pass entry if I am using a repeatable section with multiple entries?
October 30, 2018 at 8:20 am
What do you mean by "pass entry"?
October 30, 2018 at 8:24 am
I used to "transfer" data from one form to another via siteurl/?pass_entry=[key] and then using [frm-field-value field_id=x entry=pass_entry] in form field, but with this repeating section I added to my form this doesnt seem to work anymore, so I am wondering is there a way to "transfer" data from one forms repeatable section to another- that is at least similar to this one?
October 31, 2018 at 10:48 am
You want to construct a query string based on the values of a repeatable field. Since there's no way of knowing how many fields someone may add to a repeater, you would have to build the query string dynamically. I would use jQuery to build the query string. But, this begs the question, how will you read the query string on the receiving end if you don't know how many entries will be in the query string?
The approach I might use is to build the query reference dynamically as new fields are entered, save the string in a hidden text field, then use the hidden text field in the query string and read it on the receiving end.
What complicates this is that each new entry in a repeater has a unique key. For example, let's say I have a repeater with a single text field. The repeater container has the key: frm_field_87_container.
The first text input field has the key: field_97w00-0. If another row is added, the key for the second input field is field_97w00-1. These keys are generated dynamically and cannot be derived from the repeater field container.
The field names may be easier to use since they are derived from the container id. In this example, the first field's name is item_meta[87][0][89] and the second's is item_meta[87][1][89].
Whatever the case, this requires some advanced jQuery skills to sort things out, and remember, you have to decode the string on the receiving end. What you want to do is possible but not without effort. Hope this helps.
Discussion closed.