Need help getting repeater area in email

robbert@oosterhof.nu 07 Jan, 2019
I'm trying to make a form in which you can add a drop-down's to choose something:
Need help getting repeater area in email image 1
The goal is to add as much of them as you need. This works, but I can't get it to email all the line's, just the last one.
I'm sure it's something with array's or loop's, but I don't get it...
Who can help me?
GreyHead 09 Jan, 2019
Hi Robbert,

If you use a Repeater area make sure that the input names end in [] to make them array names.

Bob
healyhatman 09 Jan, 2019
If there are multiple inputs per group, I like using group[index][field] notation. Like
order[{var:area_repeater#.key}][qty]
order[{var:area_repeater#.key}][item]
healyhatman 09 Jan, 2019
Using field1[ ] and field2[ ] as the names
    [field1] => Array
(
[0] => a
[1] => b
[2] => c
[3] => d
)

[field2] => Array
(
[0] => a
[1] => b
[2] => c
[3] => d
)

Using group[{var:area_repeater#.key}][field]
    [group] => Array
(
[0] => Array
(
[field1] => a
[field2] => a
)

[1] => Array
(
[field1] => b
[field2] => b
)

[2] => Array
(
[field1] => c
[field2] => c
)

[3] => Array
(
[field1] => d
[field2] => d
)

)
This topic is locked and no more replies can be posted.