Telephone Number validation - Specific for Country
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2024 07:08 AM
- Bring country code according to site.
- Check for specific country format (number of digits).
In the (sys phone territory) table entries, we have related list like phone validation (sys phone validate) here in this we have condition field so now we have to fetch this condition and need to restrict the phone number field if it doesn't match the condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2024 08:06 AM
Hello @b__HanumeshM ,
You can define a regular expressions to fulfil this requirement.
For Example -
\d^[+]{1}91[(]{1}[0-9]{1}[)]{1}[0-9]{10}$
Meaning - This RegEx expects entered value to -
a) start with "+" followed by numeric value "91"
b) one of the numeric value exactly 10 times, must end
Example taken for country - India and mobile number with 10 digits.
You can edit this RegEx as required OR let me know exact country code and numbers expected to help you further.
Mark this as Accepted Solution/Helpful if applicable.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2024 08:30 AM
Hi @b__HanumeshM ,
Check the below post, it might help:
Validate Phone Numbers ( with Country Code extension) using Regular Expression
Validate International Phone Numbers
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.