Regex for phone and other field types
-
Hi,
For selecting a phone field, there’s an option for “International”, but the validation defines a 10-digit number ### ### ####, but this applies mostly for US/Can phone numbers, the country code (+1) is missing though.
In Denmark we have 8 digits usually given by ## ## ## ## or #### #### plus a 2 digit countrycode (+45). For the Faroe Islands it’s a 6 digit number ###### plus a 3 digit country code (+298). Germany is 11 digits ### ######## plus 2 digit (+49), etc. etc.
A such – how to make the phone field truly International?
And/or how to add country specific Regular Expression (Regex) validation for the phone field?Regex validation is also relevant for other fields like text and digits/numbers.
All to help the user to enter correctly in the registration process – and to help prevent “fake entries”.BR, Lars
- The topic ‘Regex for phone and other field types’ is closed to new replies.