Can someone give me some ideas on how to validate my custom field "Phone Number"? This is a text field, and it accepts integer values, but we are running into issues where some of our external help desk members are not capturing all 10 digits of the phone number.
Any way I can validate the field upon issue create using regex? Should the field be updated to a Number Field instead of a text field? Any suggestions?
Also tried to use the regex in this KB article and that didn't work.
^[0-9]{n}$
Are you trying validate for US number?
If so, can you try this? This will accept phone numbers in the format of 123-456-7890 or (123) 456-7890.
(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$
Hope this helps.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.