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

    Validation: Accept certain amount of symbols

    Asked by call4angel on November 16, 2012 at 06:05 PM

    Hello,

    How can I make a form field only accept a certain amount (number) of alphanumeric entry?

     

    Thanks,

    Angela

  • Profile Image

    Answered by jeanettebmz on November 16, 2012 at 06:24 PM

    You can set the limit of characters as well as the type of validation, by selecting the field and then going to the Toolbar and clicking on the Validation button, the size button is also before that one, as shown on this image

  • Profile Image

    Answered by call4angel on November 16, 2012 at 06:56 PM

    Thanks for your response.

    I did exactly that - it didn't work.

    I tested the form with only 4 alphanumeric characters and I was able to submit the form.

    I would like submitters to be unable to submit the form if the field is not populated with 7 alphanumeric characters.

    How do I do this?

    Here's the form: http://form.jotform.co/form/23196355640859

  • Profile Image
    JotForm Support

    Answered by Mike_T on November 16, 2012 at 07:18 PM

    You can set the Max Size parameter to 7, this will not allow form users to put more than 7 characters into the field.

    Unfortunately, we do not have the minimal size validation. In other words, you can not set the minimal size validation through the form builder. However, it is most probably that such validation can be added with custom script on your web page.