I want one of my fields to have a rule where it can only take integers(1,2,3…) and one string "not available"
i.e. status fields can take integers(1,2,3…) or string "not available" when I save the update form .
What will the rule be?
I want one of my fields to have a rule where it can only take integers(1,2,3…) and one string "not available"
i.e. status fields can take integers(1,2,3…) or string "not available" when I save the update form .
What will the rule be?
array('field', 'match', 'pattern'=>'/^(\d+|not available)$/')),