Buy Now
Sign in

Repeater content in email

jlundmark , May 31 at 04:36
J
jlundmark
I'm having trouble getting the repeater area values in CF6 to pass through to the email template. In CF5 you'd simply add {repeater:items} to the email template. Here is the array output:​
​​
Array​
​(​
​ [chronoform] => RequestInformation​
​ [event] => submit​
​ [group] => Array​
​ (​
​ [{"key":0,"row":0}] => Array​
​ (​
​ [firstname] => test name 1​
​ [middlename] => test middle name 1​
​ [lastname] => test last name 1​
​ [workphone] => +1(111)111-1111​
​ [cellphone] => +2(222)222-2222​
​ )​
​​
​ [{"key":"1"}] => Array​
​ (​
​ [firstname] => test name 2​
​ [middlename] => test middle name 2​
​ [lastname] => test last name 3​
​ [workphone] => +3(333)333-3333​
​ [cellphone] => +4(444)444-4444​
​ )​
​​
​ [{"key":"2"}] => Array​
​ (​
​ [firstname] => test name 3​
​ [middlename] => test middle name 3​
​ [lastname] => test last name 3​
​ [workphone] => +5(555)555-5555​
​ [cellphone] => +6(666)666-6666​
​ )​
​​
​ )
GreyHead
Hi jlundmark,
Please see the LOOP section on page 27 of the CFv6 manual.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
J
jlundmark
Thanks, I was able to get it working. I was using the loop but I didn't have it quite right.​
​​
​I'm having a few other issues now:​
​​
​1. Validation does not pass even if field has content when in repeater area, all works normally outside of repeater.

​2. Unable to select radio options when in repeater area. Setting "Selected value" does set the default but am unable to change. Moving out of the repeater fixes it.​
3. Mask only works of first item in repeater area.