Skip to main content

Greetings, I have an eSignature envelope template with a custom field validation where I have placed your example of a phone number RegEx and it does not appear to be working.  I can enter any value and no error is given.

Here is the example you provide: 

^>2-9]\d{2}-\d{3}-\d{4}$

Hyphen-separated U.S. phone number, of the form ANN-NNN-NNNN, where A is between 2 and 9 and N is between 0 and 9

at this link Custom Data Validation.

 

 

Am I missing something?

Thanks,

David

Hello ​@DaveOz,

Thank you for reaching out, and welcome to the Docusign Community! I appreciate you bringing your question to this Community.

The example provided is correct. I have tested the pattern, and it is working fine on my end. Can you try creating another validation?

You can also use this pattern for phone number:  ^(\d\d\d-\d\d\d-\d\d\d\d)$

A tooltip should appear above the textbox when the cursor hovers over it, if an invalid value has been entered.

 

 

 

 

 

Let me know if you have any questions.

 

Regards,

Jenny| Docusign Community Moderator

If this helped, feel free to mark it as "Best Answer" so others can find it too!

 


Reply