Buy Now
Sign in

Retrieve data from database to checkbox group

Yudhizth , August 24 2017
I have a checkbox group with 5 items. And I have saved the record to database. In another form, I want to call the record from database to checkbox group. The value that I save is comma separated value, example : 1,3,5 and the result is must be like this. I need a clue to solved this. Thank you


Hi Yudhizth ,

Please use a Custom Code action to explode the list back into an array
$form->data['xxx'] = explode(',', $form->data['xxx']);

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much