i have a problem with this Zend form element, how can i read the elements status of Multicheckbox?
$type= new Zend_Form_Element_MultiCheckbox('typer');
$type->setLabel('Type');
$type->addMultiOptions(array(
'1' => 'type1',
'2' => 'type2'
));
Thanks for the support!…
Retrieve it with getValue()
It’ll be an array with ONLY the elements that were checked.
i.e
will return an array like this (IF both are checked)
if say only checkbox 2 was checked the array will be
If no checkboxes were checked the getValue() will return NULL