How to add an input mask validation?

  • Profile Image
    vsCanada
    Asked on April 11, 2018 at 02:37 PM

    Hello.

    I've been looking for the answer about fill the mask.

    How can I enable the mask for a phone number?

    Example: the field needs 10 digits. If the user fill in 9, a warning message appears (field value must fill the mask).

    Thank you.

  • Profile Image
    Adrian
    Answered on April 11, 2018 at 03:05 PM

    You can enable the Input Mask for the Phone Number field in the OPTIONS tab of the field's properties.

    15234729961.png

    @ = Masks Letters
    # = Masks Numbers
    * = Masks Letters & Numbers

    Complete guide: Getting-Started-with-the-Basics-of-Input-Masking 

    In your case, the Input Mask can be something like ##########.

    Unfortunately, it is not possible to set a minimum number of characters in the Phone Number field.

    If you want to set a minimum number of characters (letters) then use the Long Text Entry field.

    15234734412.png

    Set the Entry Limits to Minimum 10 and Maximum 10, Letters in the OPTIONS tab of the field's properties. You can also set the Validation to Numeric.

    DEMO: https://form.jotform.com/80243629007957


  • Profile Image
    vsCanada
    Answered on April 11, 2018 at 03:16 PM

    Hello Adrian.

    I really appreciate your quick response.

    Thank you.