Hi,
I created callback function for validation following ways, but it is not working. Please help me...
$form->registerRule('check_contact_num', 'callback', 'submit_contact_num', 'Utils_RecordBrowserCommon');
$form->addRule(array("mobile_phone","work_phone","home_phone"), $this->lang->t('Please add at least one contact number'), 'check_contact_num');
Added function....
public static function submit_contact_num($x)
{
if(!is_array($x))
return false;
else
return true;
}