Display only the value in checkbox group after submit

Display only the value in a checkbox group after form submission.

Overview

The issue occurs because the form is outputting the raw array structure instead of a clean list of selected values.
In the CF form setup, remove the square brackets from the checkbox group name in the Fields List and set the separator to a comma and space.

Answered
wl wlwan 10 Jul, 2015
Dears,

I have create a contact us form with checkbox group of 5 options.
The form will send out email with all the fields input result after submission .

Questions is....
I have add "array handle" @"on load" in setup. All information can show in email correctly, but would like to format the array for easier reading
now it looks like: array ( 0 => 'value1', 1 => 'value2',2 => 'value3')
what i want it to be: value1, value2, value3

Anyone can tell how to make it?
Thanks a lot.

Best regards,
Wing
wl wlwan 10 Jul, 2015
here's my setting fyr
Gr GreyHead 10 Jul, 2015
Answer
Hi Wing,

Please remove the [] from the name in the Fields List box and change the separator to comma+space if you haven't already done so.

Bob
wl wlwan 13 Jul, 2015
That's cool~ It works now. Thanks for your help😀
This topic is locked and no more replies can be posted.