load data from array

Load checkbox group values from a saved array in ChronoForms v5.

Overview

The DB Record loader in CF v5 lacks the "Array Fields Sets" feature available in v4 for extracting array data.
Add a Custom Code action after the DB Read action to manually convert the saved comma-separated string back into an array.

Answered
az azz13 02 Apr, 2014
I created form with checbox group for editing data. I need read checbox values from saved array.
In version 4 DB Record loader have field "Array Fields Sets" what extract values. How i can do that in version 5
Max_admin Max_admin 02 Apr, 2014
Answer
This feature is not available in v5 yet, so you will have to do it manually, just add a "custom code" action after the "db read" and add this code:

<?php
$form->data["checkbox_group_name"] = explode(",", $form->data["checkbox_group_name"]);


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.