Retrieve data from database to checkbox group

Yudhizth 24 Aug, 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


?

?
GreyHead 24 Aug, 2017
Hi Yudhizth ,

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

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