How do I add a 10 digit phone number check?

There is an easy way to ensure that your users are inputing the correct number of digits for a phone number. 

Step 1

Navigate to Admin Dash > Settings > Configuration and scroll down to Text Filters and click Add Text Filter. 

For our marketplace we'll enter the following:

  • Name:  10 Digit Phone Number
  • Regexp: \d[-\d()\s.]{5,}\d
  • Replacement Text: ****
  • Ignore case: Check the Flags box


If a user enters in a phone number that is less than or greater than 10 digits, there will be a notification shown to the user.