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

    Input masking for phone numbers without defining exact length

    Asked by eiermann on November 05, 2016 at 10:07 PM

    Hi there,

    I just looked at the article of input masking but I couldn't find a way to do the following:

    I need a field for phone numbers. But phone numbers are not all the same length.
    I wanted to force a plus at the beginning but not force a certain length for the number. 
    How can I do that? For example it should be possible to have:

    1. +62817971033

    2. +491797558367

    3. +81553886997155

     

    As you can see each number has a different length. What can I do to make this work with the input mask?

     

    Cheers,

    Chris

    Page URL:
    https://www.jotformpro.com/form/51764522899974

    Screenshot
    length masking Without for
  • Profile Image
    JotForm Support

    Answered by BJoanna on November 06, 2016 at 10:14 AM

    You can achieve that by adding plus sign in front of mask inputs inside of Mask Value option. And if you do not want to force a certain length for the number uncheck Fill Mask Validation option.

    Here is my cloned form: https://www.jotformpro.com/form/63104435722953 

    Feel free to test it and clone it

    Hope this will help. Let us know if you need further assistance.