Checkbox group only latest checked in email

Send all selected checkbox values in an email instead of just the last one.

Overview

The issue occurs when a checkbox group with array syntax in the field name is processed, and the Handle Arrays action is placed after the Email action in the form's event order.
Move the Handle Arrays action before the Email action in the OnSubmit event to properly process and include all selected values.

Answered
Da Dakdak 20 Mar, 2015
Hello,
after a long search on the forum I decided to post, there's something I don't understand.

In checkbox group element setting :

Field Name : myfieldname[]
Options :
No=no
Yes=yes
Why=why
How=how

if everything is checked in the email I have:

myfieldname array ( 0 => 'No', 1 => 'Yes', 2 => 'Why', 3 => 'How', )

If i add a value in brackets myfieldname[somethink] and always all checked I have in email :

myfieldname How

only the latest element checked

Many thanks for help
Gr GreyHead 21 Mar, 2015
Hi Dakdak,

What exactly is the problem here?

What do you want to show in your email?

Bob
Da Dakdak 21 Mar, 2015
Thanks Bob, sorry for my english

I would like in the email just :

myfieldname no, yes, why .....

Not : array (0=>'No' .........

if I add somethink between bracket " myfieldname[somethink] " , in the email I have just the latest checkbox checked
Gr GreyHead 21 Mar, 2015
Answer
Hi Dakdak,

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

Bob
Da Dakdak 21 Mar, 2015
Perfect Bob, Thanks a lot, the Handle Arrays action was after Email action
This topic is locked and no more replies can be posted.