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

    Set minimum number of characters.

    Asked by penforhiregraphics on January 30, 2013 at 05:09 PM

    My client wants a phone number where you have to put 3 digits in for the area code and 7 for the phone number.  The Phone Number quick form allows for more so I used text boxes for each part defined as number with a Max of 3 and a Max of 7.  But they want it set that you have to put at least 3 and 7.  I followed this:


    Adding the min="3" as suggested stops the Next Button to stop working. My form is here:


    I copied the source code and added the min="12" and then pasted it on my page using Adobe Muse as an html obeject.  Next works fine until I do this.

    Any thoughts?  Would be nice as a standard feature to have Min and Max instead of just Max.

    Thank you,


    Page URL:

  • Profile Image
    JotForm Support

    Answered by abajan on January 30, 2013 at 09:24 PM

    Hi Gary,

    According to my information, the min attribute has to do with the value of a number and not how many digits it contains and unfortunately, there's no minlength attribute. However, HTML5 has a pattern attribute where if a user were to enter less than the required number of digits, a message would be triggered.

    It's also possible to add a script that forces the user to enter the phone number in the correct format, as illustrated in this demo.

    Please let us know if you need further assistance with this.



  • Profile Image
    JotForm Support

    Answered by abajan on January 30, 2013 at 09:33 PM


    I forgot to mention that the pattern attribute doesn't work in IE unless the workaround described in the following video is applied: