Phone numbers

Don

Asked on November 3, 2022 1:33 PM

I am based in Hong Kong and phone numbers here are 8 digits. Since none of the available options are 8 digits on your validation list, I was wondering if you can add a validation for 8 digits.

Currently, I can only add a box for “Short Answer” for the phone number.

Would be great help if you could do it.

Thank you.

Simina D

Answered on November 3, 2022 7:11 PM

123FormBuilder Support
Hello Don,
 
Thank you for contacting us.
 
We cannot add new validations to the Phone field at the moment, but you can use the Regular Expression option in order to add the needed validation. 
 
  1. Add a Short Answer field and select “regular expression” as Data Format.
  2. Enter the following regex code: /^(\+\d{1,4}\s)?\(?\d{4}\)?\d{4}$/ 

 
By doing so, your users will need to enter 8 digits.
 
Here is a screenshot to guide you: 
 

Please let me know if you require any more information, I will be more than happy o help.