Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
- AuthorPosts
Trig
ParticipantAlly, Thank you very much!
Trig
ParticipantThank you, Ally!
Trig
ParticipantNever mind, I got it. For anyone else interested in this thread, this works:
$phone->addValidator('required');
$phone->addValidator('regex', array('pattern' => '/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/', 'messages' => array('not_match' => 'Please enter the phone number in the format XXX-XXX-XXXX')));
Trig
ParticipantAlly,
One follow-up question. I used your server side fix using a Regex validator. How do I also make $phone a required field?
Thanks again!
Trig
ParticipantThank you Ally!
Trig
- AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)