Multiple checkbox only saves last value

NJM 24 Aug, 2015
Hi,

I have an issue with a checkbox group. It is probably something silly but somehow when one has selected multiple answers in a list (from a checkbox group); I only find that last answer in my database. Maybe I need to add something or check something?

example
I'm interested in:
1= one
2= two
3 = three

when I check all three, in the database is put '3' instead of 1,2,3

Kind regards,
JM
GreyHead 24 Aug, 2015
Hi JM,

Please check that the CheckBox group has an array name ending in [].

And please drag a Handle Arrays action into the On Submit event and move it up before the DB Save action.

Bob
NJM 28 Aug, 2015
Hi Bob,
Thanks, it works like a charm!

grtzz
JM
LikeStuff 28 Aug, 2015
Thanks... this worked for me too but I have an additional question.

When the content comes into my email it looks like this:

This is one,This is two,This is three,This is four

Is there a way to either add a space between each option or preferably have them appear on their own line?

Thank you.
GreyHead 28 Aug, 2015
Hi Likestuff,

Please try changing the separator in the Handle Arrays action tp comma+space or to <br />

Bob
infolink 08 Nov, 2015
I have tried the suggestions above but my form still only sends the last checked item.

I am unsure what "Please check that the CheckBox group has an array name ending in []." means exactly though....
GreyHead 08 Nov, 2015
Hi infolink,

Errr . . . it means that the name of the checkbox group ends in [] like checkbox_group[]

Bob
infolink 09 Nov, 2015
Where though? Within the designer? Field name? Field ID? Label?
GreyHead 09 Nov, 2015
Hi infolink,

[attachment=0]2015-11-09_17-13-04.png[/attachment]

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