How to apply input mask when the entry length is not fixed?

  • Profile Image
    kfafhaat
    Asked on August 19, 2019 at 03:45 AM

    what if the entry length is not fixed? example 12AA12345678

    The last set of numbers' length is not fixed. it could be less or more? how to apply the mask here? Thanks!



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

  • Profile Image
    AndrewHag
    Answered on August 19, 2019 at 05:54 AM

    Could you please provide more information on which field you wish to apply the mask? Also, please share the URL of the form that you are working on.

  • Profile Image
    IvayloK
    Answered on August 19, 2019 at 11:21 AM

    Input mask is used when a specific format is required. Unfortunately, it is not possible to have a variable length of the numbers.

    You may consider to use our Masked Input widget, which may give you more flexibility. You can find here:

    https://widgets.jotform.com/widget/masked_input

    Let us know if you need any further assistance.

  • Profile Image
    IvayloK
    Answered on August 19, 2019 at 11:28 AM

    Can you please try to use the format below in the Input Mask field?

    ##@@[#][#][#][#][#][#][#][#][#][#]

    Please give it a try and let us know how it works for you.

    We will wait for your response.

  • Profile Image
    lwh2
    Answered on August 23, 2019 at 01:22 AM

    I used the following for a phone number field and it worked:

     ###-###-#### [***. ][*][*][*][*][*][*]

    And I put this in the placeholder on the advanced tab of the field:

    Ex: 304-123-1234 Ext. 12 (enter numbers and letters only - Extensions are optional)

  • Profile Image
    KrisLei
    Answered on August 23, 2019 at 03:10 AM

    Glad it worked. Is there anything else we could assist you with?

  • Profile Image
    lwh2
    Answered on August 23, 2019 at 04:43 AM
    No thank you; and thank you for asking.
    Get Outlook for iOS
    ________________________________
    ...
  • Profile Image
    kfafhaat
    Answered on August 25, 2019 at 07:25 AM

    IvayloK, your solution was a hit! Thank u! It did work!


    Thanks everyone for taking time! 


    Cheers,