I posted about validating a phone number with CFv6. I was told to use a regex. I researched it and thought I had my answer so I marked my thread as solved. But, I guess I spoke too soon!
I need to validate a US phone number in the following format: 555-555-5555. The regex I created is: /[0-9]{3}\-[0-9]{3}\-[0-9]{4}/g for the following custom mask:
data-inputmask:'mask' : '999-999-9999'
type:tel
The field works ok in the sense that it requires the ten numbers. But when I submit the form, the form doesn't go and throws a "phone" error.
The form is located at: http://cslftlauderdale.org/new/stay-connected/prayer
Thanks in advance for your help
Jose
I need to validate a US phone number in the following format: 555-555-5555. The regex I created is: /[0-9]{3}\-[0-9]{3}\-[0-9]{4}/g for the following custom mask:
data-inputmask:'mask' : '999-999-9999'
type:tel
The field works ok in the sense that it requires the ten numbers. But when I submit the form, the form doesn't go and throws a "phone" error.
The form is located at: http://cslftlauderdale.org/new/stay-connected/prayer
Thanks in advance for your help
Jose