Is It Possible to Set a Minimum Number of Allowed Characters for a Field?

  • UEPWeb
    Asked on August 10, 2015 at 4:15 PM

    I can set the number of characters users can enter (set at 6)

    I can set the maximum allowed characters for this field (also set at 6)

    But I don't have the option to set the minimum allowed characters?

     

    I want to ensure that users enter a 6-digit number, because some will enter 5-digit employee numbers that will not work with our system.

    Thanks,

    Mark

    Jotform Thread 634376 Screenshot
  • UEPWeb
    Replied on August 10, 2015 at 4:25 PM

    I see that this has been asked many times over. I'll try the manipulating the embedded code workaround.

  • abajan Jotform Support
    Replied on August 10, 2015 at 7:05 PM

    There's actually no need to manipulate the embedded code. You could do the following instead:

    1. Delete the current Employee ID field*

    2. Insert a normal text box field in its place

    Is It Possible to Set a Minimum Number of Allowed Characters for a Field? Image 1 Screenshot 30


    3. Set it to Required just like you did with the now deleted field and then click the Input Mask button and enter six octothorpes (######) and check Fill Mask Validation:

    Is It Possible to Set a Minimum Number of Allowed Characters for a Field? Image 2 Screenshot 41


    4. (Optional Step) Change the error message which is displayed when less than the required number of digits are entered

    * If you have received data via the Employee ID field, save the submissions before deleting the field

    Here's a clone of your JotForm with the above solution.

    Should you need further help with this, we'd be glad to provide it.

    Cheers