Is there a way to set a mask to take different variables?

  • Profile Image
    chicuds
    Asked on September 18, 2017 at 09:35 PM

    Was the following answered, we have the same issue in New Zealand:

    nrot August 05, 2017 at 11:46 AM

    In the UK, we have a variety of landline telephone number formats, e.g.:

    0117 912 3456

    01234 567890

    01234 56789

    Is there a way to set a mask to take all these variables into account?



    This is a re-post of a comment on Getting Started with the Basics of Input Masking

  • Profile Image
    John_Benson
    Answered on September 18, 2017 at 10:20 PM

    Unfortunately, you need to create a different Short Text Entry field for different phone number format. After that, you will need to add an option and show/hide fields condition.

    Here's a demo form: https://form.jotformpro.com/72608528847973

    In the demo form, I have added a drop-down field with an option of 10 digit and 11 digit phone number. I also added 2 Short Text Entry field that will show only after choosing an option in the drop-down field. 

    Related guide: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    You can copy the demo form by following this guide: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Result: