The CreatorCon Call for Content is officially open! Get started here.

How to validate valid phone numbers in the service catalog

santrym
Mega Expert

I'm not seeing a phone number field type for user input. Does ServiceNow provide any kind of cell phone validator in the Service Catalog, or will I need to write a client script to do this?

1 ACCEPTED SOLUTION
9 REPLIES 9

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Unfortunately there's no matching phone number variable type like there is for fields, so you'll need a client script to validate.


This was a tough one, because the answer I used was in the link you provided, but the answer I used was written by Brad. I'm gonna give you "Correct Answer" though for making it convenient for me. So, thanks Chuck for giving me the answer I needed, and thanks Brad for writing it!


Hi @Chuck unfortunately this link no longer takes' me to the answer. 

Can you please reshare the answer here as in copy paste instead of providing the link as the link take me to the home page of the community.