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

    How to make alphanumeric validation require both letters and numbers?

    Asked by ihsan_hijup on April 07, 2016 at 01:53 AM

    I need use validation at one form, it contain just 6 char and value can be "7865rt" or "ygt36t" something like that... what validaion i use ? because i try use alphanumeric, when i tried input "abcdef" it's still work, i need combination alpha and numeric 

  • Profile Image

    Answered by Boris on April 07, 2016 at 04:05 AM

    If you are using the Validation button on a Text Box field, this feature allows what can be entered on that field, but it does not mandate that all of the allowed characters must be entered.

    This means that selecting "AlphaNumeric" will allow users to enter letters and/or numbers in any combination, including only letters, or only numbers. That is because letters are allowed within alphanumeric, so even letters alone can be entered.

    If you want your users to be required to enter 6 characters, and to control which of them will be numbers and which will be letters, you may want to use the Input Mask feature instead:

    In the Input Mask, you can use @ for the character where it will always be a letter, # at the place you will always collect a number, and * for where either a letter or a number are allowed.

    If you need further assistance, please let us know.

  • Profile Image

    Answered by ihsan_hijup on April 07, 2016 at 04:12 AM

    i need for combination char and numeric not 'or' but 'and', how i make this ?

  • Profile Image
    JotForm Support

    Answered by beril on April 07, 2016 at 07:40 AM

    I've tried to find a good solution for you. However, I couldn't find it in JotForm. You can solve that issue by downloading your source code and adding additional JavaScript code.

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.