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 add validation (input mask) to fields

    Asked by ukilearn on April 24, 2017 at 08:59 AM

    Hi Support, 

     

    I'm trying to find a way to validate form contents within a Jotform. I've searched your help pages and its referring to what looks like an older version of Jotforms. 

     

    Has it moved? if so, can you tell me how to do this please.

     

    For clarity, what I want to do is ensure that data entered into a form is only numerical and restricted to 9 digits.

     

    Many thanks

    Sam

    Page URL:
    https://form.jotformeu.com/71121916984359

  • Profile Image
    JotForm Support

    Answered by seth on April 24, 2017 at 10:06 AM

    Hello,

    There are fields that have mask properties under their question properties like phone field and short text entry field:

    Here is a demo form that has two phone fields where former one has no input mask while the later has:

    http://form.jotformpro.com/form/52012126851949

    You can clone this form and inspect it. Here is a guide on cloning:

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Besides that, you can add a mask to a field using conditions. Here is a guide about it:

    https://www.jotform.com/help/358-How-to-Set-Content-Mask-on-a-Form-Field-Based-on-Another-Field-Input

    If you need further help, please don't hesitate to contact us again.

    All the best.