What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Mobile phone number with 10 digits and 11 digits

    Asked by npp on March 22, 2014 at 03:07 AM


    I have trouble to figure out how to set the phone number field to collect mobile numbers with 10 digits and 11 digits.

    Our mobile network providers had recently come out with mobile number that is 11 digits.

    Eg. 019-1112345 (10 digits) & 019-11123456 (11 digits).

    We did try to enable the masking and set the format to 11 digtis as ###-#######. 

    However for customers with 10 digits number, the result will be for example 019-1112345_. There is an unmderscore line behind the last digit.

    Please kindly advise how to go about it.




    Page URL:

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 22, 2014 at 03:17 PM

    Hello Lee,

    When you add a "Masking Value" to your form input field, it is to ensure that exact number of character is input in the form field by user. Unfortunately, it will not be possible to give option to your user to input either 10 or 11 digit input.

    Only possibility I can think of currently is to download your form's source code and add some custom JavaScript code to achieve your requirement. Please be noted that if you embed your form with its source code, any changes you make in your form editor will not reflect in your web page. You will have to download your form's source code again and embed it in your web page. 

    Do get back to us if you want to take the form's source code to achieve your requirement and we will surely help you with custom source code.

    We will wait for your response.

    Thank you!