How to add an input mask validation?

  • vsCanada
    Asked on April 11, 2018 at 2: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.

  • Adrian
    Replied on April 11, 2018 at 3:05 PM

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

    How to add an input mask validation? Image 10

    @ = 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.

    How to add an input mask validation? Image 21

    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


  • vsCanada
    Replied on April 11, 2018 at 3:16 PM

    Hello Adrian.

    I really appreciate your quick response.

    Thank you.