You are viewing limited content. For full access, please sign in.

Question

Question

Phone Number formatting Forms

asked on May 5, 2014

Hello,

 

I wanted to know if there is a way with CSS and JavaScript to validate a field I have set up as a single line field.  I'm looking for the validation to happen when the field loses focus.  This way an error message can pop up before the submit button is hit.  Any help you can provide would be greatly appreciated.  Thank you,

 

0 0

Answer

APPROVED ANSWER
replied on May 5, 2014

I'm assuming by the title of your post you want to validate that it is in the format of a phone number? If so, when selecting the single line field, go to the advanced tab. There you will find a "Regular Express" field. for a US phone number you would enter \d\d\d-\d\d\d-\d\d\d\d.

3 0

Replies

replied on October 2, 2015

I have a form with three separate phone number fields. This expression works on the second and third fields. However, when applied to the first field, I receive an error "Invalid input" as soon as I begin entering a number. Is Regular Expression affected by having a Lookup Rule applied to this field where a value is initially filled from a SQL stored procedure? 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.