01/29/2014 at 1:56 pm
#278547
Keymaster
@ Mitch
What is being used to input the data, the add entry page, Link or Form?
You could make an edit the code so the input for the phone number is like this:
<input type='tel' pattern='\d{3}[\-]\d{3}[\-]\d{4}' title='Phone Number (Format: 123-456-7890)'>
I can’t really put this in Connections because the pattern changes depending on the county and even then there are multiple valid acceptable patterns. That why I decided to just leave it a free text input.
Oh, this will only be enforced on more modern browsers. Anyone using Chrome or Firefox should be fine. And I think it’ll only work on IE10+.
Hope that helps!
