Input Masks for varying length

  • bellneu
    Asked on June 18, 2020 at 5:29 AM

    The help does not cover input masks that may vary in length. I want to have an input mask for a patient to enter their height. For example - it would be #' ##" so a user knows what format I want them to enter the height in otherwise they may enter only inches or even centimeters. Using the mask I just gave above I can enter 5' 10" in my field but then I run into an issue - what if they are 5' 9". The inches part of my height input may be 1 character or 2 characters long. so do I need two masks for my field or another way for the user to be able to enter 5' 1" and 5' 10". I am unsure of the best way to handle this. I saw that someone posted to add a second field with a mask that is #' #" but then how would I tell JotForm which field to use in the conditional logic? I run into this same problem with Blood pressure. It can be XXX/XX, XX/XX, or XXX/XXX. Please give me some help!

  • Anita_K
    Replied on June 18, 2020 at 7:59 AM

    Hi,

    thank you for reaching out to us.

    Unfortunately, at the moment it is not possible to allow for varying length of input while also using an input mask.

    I will forward this to our backend team as a feature request so that the implementation can be considered in the future.

    Meanwhile, I would suggest to either use input masks that allow for the longest possible entry and advise users to fill the spaces with 0. Or you could use two separate number fields labelled feet/' and inch/"

    I hope this helps, please let us know if you have further questions.