Hi,
Is there a way to validate a field for a phone number? I can't think of a way, because it can contain so many different things, like numbers and +-() and can be different lengths.
I found two validation checkboxes, phone and international phone, but both don't seem to do anything?
Ed.
Is there a way to validate a field for a phone number? I can't think of a way, because it can contain so many different things, like numbers and +-() and can be different lengths.
I found two validation checkboxes, phone and international phone, but both don't seem to do anything?
Ed.
Hi Ed,
Digging in the code both the phone and phone-inter validations appear to use this regex
/^\+{0,1}[0-9 \(\)\.\-]+$/ which is a fairly limited validation. This checks for an optional + followed by a series of: 0-9 space ( ) . -
You could use a custom validation with a more complex regex if you can specify it.
Bob
Digging in the code both the phone and phone-inter validations appear to use this regex
/^\+{0,1}[0-9 \(\)\.\-]+$/ which is a fairly limited validation. This checks for an optional + followed by a series of: 0-9 space ( ) . -
You could use a custom validation with a more complex regex if you can specify it.
Bob
This topic is locked and no more replies can be posted.
