Skip to main content
Question

How do I make sure that the phone number entered in my form is 10 digits and throw an error if it is wrong?

  • April 12, 2018
  • 0 replies
  • 90 views

How do I make sure that the phone number entered in my form is 10 digits and throw an error if it is wrong? 

  • Registered
  • April 12, 2018
You can use a formula field to 'count' the number of digits in the field, and then use a form rule that will show a pop-up if it is not equal to 10.

  • Registered
  • April 12, 2018

You can use the Length() function like so in a formula check box field.

if(

length([phone number])<10,true,false

)


I'm not sure if the function would consider the counting of hyphens. Experiment around with it.