I’m using the invalid helper on my front end form. I just need to check if an exact value (12 in this case) has been entered. Here’s what I have and this works, but isn’t there a better way?
'ruhuman' => array('required', 'max' => 12, 'min' => 12),
Any help would be appreciated. Thanks.