Forums

Checkbox Group Values

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
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
Leilahodgkins 15 Dec, 2015
Thanks for your help, that works perfectly.
This topic is locked and no more replies can be posted.