Checkbox Group Values

Display checkbox group values as readable text in ChronoForms emails.

Overview

The issue occurs because checkbox group data is sent as an array, which CF displays in its raw format.
Add a Handle Arrays action to the OnSubmit event and place it before the Email action to convert the array into a string.

Answered
Le Leilahodgkins 15 Dec, 2015
I am managing to use a Checkbox Group in my form but the email always shows the value as:

array ( 0 => 'Subscribe-to-email', )

I have the options set out as:
Subscribe-to-email=Yes, please subscribe me to your email newsletter
No-email=No, don't add me to your email list

Can anyone tell me how to get rid of the 'array ( 0 =>' code in the email?

Thanks
Leila
Gr GreyHead 15 Dec, 2015
Answer
Hi Leila,

Please drag a Handle Arrays action into the OnSubmit event and move it up before the Email action.

BUT - if it's a Yes/No choice then you probably don't want to use a CheckBox group as that will allow the user to say BOTH Yes and No - use a single CheckBox, or a Radio Button Group.

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