I mean, a list of options to show checkbox's near each and so the user can toggle a few of those.
I already looked at that page but I don't see where it explains how to add options for checkbox type of field.
I'm doing something like this:
$field = array('name'=>'Car Insurance Type', 'type'=>'checkbox', 'required'=>false,
'visible'=>false, 'param'=>array('order_by_key'=>true,'Insurance_Base_Car_InsuranceType'));
Utils_RecordBrowserCommon::new_record_field('insurance_polisa', $field);
While if it was a select options I would've used something like this:
$field = array('name'=>'Polisa Payment Counts', 'type'=>'commondata', 'required'=>false,
'visible'=>false, 'param'=>array('order_by_key'=>true,'Insurance_Base_Polisa_PaymentCounts'),
'position' => 'Polisa Payment Type');
Utils_RecordBrowserCommon::new_record_field('insurance_polisa', $field);
Utils_CommonDataCommon::new_array('Insurance_Base_Polisa_PaymentCounts',
array(0=>'0', 1=>'1', 2=>'2', 3=>'3', 4=>'4', 5=>'5', 6=>'6', 7=>'7' ...
I'm interested in showing a bunch of options to toggle (checkboxs)
What I don't understand with the checkbox definitions is how to add the options for it to list...?
It's not getting a param array in the field definition to name the commondata array.
Maybe I should use multiselects instead of checkbox?