I am trying to get custom error message to work for MultiCheckbox, doesn't work. It is the same way I did for Zend_Form_Element_Text that works.
But for MultiCheckbox, nothing. I tried different combinations but the message "Invalid type given, value should be float, string, or integer" doesn't go away.
Here is the code below. Any help greatly appreciated. cheers
$cats = new Zend_Form_Element_MultiCheckbox('parCats', array('multiOptions' => $mCats)); $cats->setRequired(true); $cats->setLabel('Categories');
$cats->addValidator('NotEmpty', array('message' => 'Select Category')) ->getValidator('NotEmpty') ->setMessage('Select Category');