'Not a valid phone number' not getting removed even after entering correct phone number

ServiceNow Use6
Tera Guru

Hi,

I am currently working on a catalog which requires phone number. The regex validation from Type specification is selected as phone number. If I enter the invalid number, i get error message. 'Not a valid phone number'. Even i corrected it and enter a valid number, it stays there. Kindly help.

find_real_file.png

Regards

Suman P.

1 ACCEPTED SOLUTION

Mohan raj
Mega Sage

Hi

Go to question_regex.list table and select the phone number record and open 

in that record Regular Expression : ^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$

 

in that fields has above expression than i will support the below format only 

123-456-7890
(123) 456-7890
123 456 7890
123.456.7890
+91 (123) 456-7890

to know more about the regex expression check the link below 

https://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-num...

 

if the answer is correct please make the answer as helpful

View solution in original post

4 REPLIES 4

Sai Kumar B
Mega Sage
Mega Sage

@ServiceNow user 

Can you share the regex used for Phone number validation?

Go to the question_regex table find the Phone number validation

Mohan raj
Mega Sage

Hi

Go to question_regex.list table and select the phone number record and open 

in that record Regular Expression : ^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$

 

in that fields has above expression than i will support the below format only 

123-456-7890
(123) 456-7890
123 456 7890
123.456.7890
+91 (123) 456-7890

to know more about the regex expression check the link below 

https://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-num...

 

if the answer is correct please make the answer as helpful

sherylburke
Tera Contributor

Great post! It's always helpful to know the different ways of reaching out to potential customers.

KevinKunch
Mega Contributor

Hi there! If you're having some issues with the phone number validation on your catalog, I have some recommendations to you. Have you tried reaching out to the support team for the platform you're using to see if they have any suggestions for resolving this issue?