I've got a very simple contact form set up. I'm trying to use regex to validate a 10-digit US phone number in the format: 555-555-5555
I entered my regex into the regex field: ^[0-9]{3}\-[0-9]{3}\-[0-9]{4}$
Now, when using the form the field turns red as expected when typing, then back to white once the number is correctly filled.
However, when pressing submit, the validation fails and the error message is displayed to enter the number in the correct format.
What gives? I assume I have missed some option in the validation panel.
[file=13398]Untitled-1.jpg[/file]
I entered my regex into the regex field: ^[0-9]{3}\-[0-9]{3}\-[0-9]{4}$
Now, when using the form the field turns red as expected when typing, then back to white once the number is correctly filled.
However, when pressing submit, the validation fails and the error message is displayed to enter the number in the correct format.
What gives? I assume I have missed some option in the validation panel.
