How to add optional character in an Input mask

  • Michael_Smith_msmith
    Asked on October 27, 2020 at 12:41 PM

    Is there a character you can use as optional in an input mask?

    Example would be I want the user to input a number with one digit after the decimal point.

    #.# would work until they might need to enter 10.5.

    Thanks

  • Laura JotForm Support
    Replied on October 27, 2020 at 2:46 PM

    Hi,

    Thank you for reaching out to us.
    Please try using [#] brackets for optional characters.

    Also, there is a Masked Input widget available. I'm not sure if it would suit your needs, but please give it a try:
    https://www.jotform.com/widgets/masked-input

    Please let us know how it goes, and if there is anything we are happy to help you further!

    Best Regards,