Hello I have a event that runs correctly: A dropdown with JSON after read database values:
Is posible put the same values to a checkbox group field??
Thanks
<?php
$results = array();
$results[] = 'coles';
foreach ( $form->data['coles'] as $v ) {
$results[$v['co_registro']] = $v['co_nombre'];
}
echo json_encode($results);
?>
Is posible put the same values to a checkbox group field??
Thanks