Trying to get checkbox data to save into database only showing one selection

Datty 17 Mar, 2014
Hello,

I am having trouble getting multiple data saving to the database from a check box. The only data showing is the last box ticked. How do I get all boxes ticked to save into the database? Thanks!
Datty 18 Mar, 2014
*bump* any help?
Max_admin 18 Mar, 2014
Hi Datty,

Please make sure that you have a "Handle arrays" action before the "db save", because checkbox groups submit an array of data.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Datty 18 Mar, 2014
i have a handle arrays action set before the db save but i only still get the last ticked box. i'm not too sure what the problem is at this point.
Max_admin 18 Mar, 2014
What's your checkbox group name ? did you remove the "[]" ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Datty 18 Mar, 2014
yes i did should i put that back on?
Max_admin 18 Mar, 2014
yes, fields submitting multiple values should have them!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Datty 18 Mar, 2014
will i need to add them to the database field names?
Max_admin 18 Mar, 2014
No, just the form field name!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Datty 18 Mar, 2014
do i include the quotation marks? i get an error when adding the []
Max_admin 18 Mar, 2014
what error ? you only need to change the field name in the "designer" area, nothing else should be changed!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Datty 19 Mar, 2014
i think its when i try and have more than one checkbox area on a single form. the first checkbox sends the correct information but the other two send array and causes me to get an sql error when submitting the form.
Datty 19 Mar, 2014
nevermind i got it working! thanks a bunch
This topic is locked and no more replies can be posted.