Numeric validation in the text box field allows a hyphen

  • flaviafigueiredo
    Asked on May 17, 2017 at 4:41 PM
    For Number isnt possible to put "9-" but is possible to put "9-9". I dont wanna the last answer.
  • Welvin Support Team Lead
    Replied on May 17, 2017 at 4:47 PM

    I would suggest enabling the input mask, use # for numbers:

    Numeric validation in the text box field allows a hyphen Image 1 Screenshot 20

    This option will make sure that only numbers will be entered in the field.

  • flaviafigueiredo
    Replied on May 22, 2017 at 2:46 PM

    but if I put #### then will be possible to answer 9999-9

    *I dont wanna limited the characters 

  • Kiran Support Team Lead
    Replied on May 22, 2017 at 4:11 PM

    Please be noted that when the input field is masked with a format, the users would be able to enter in the same format only. If you want the user to enter in the format 9999-9, you may mask the input field as ####-#.

    Hope this information helps! 

  • flaviafigueiredo
    Replied on May 22, 2017 at 4:31 PM

    If I masked with ###   is it possible to write 9999999999999999999 or 9999999-99999-99999?

  • Kiran Support Team Lead
    Replied on May 22, 2017 at 5:45 PM

    No. The masking on the input field checks for the length and # can accept only numbers. So, for instance, if you have masked the input field as ####-####, you can enter the value as 1234-5678 only. Please refer to the guide below that can help you with setting content mask

    https://www.jotform.com/help/358-How-to-Set-Content-Mask-on-a-Form-Field-Based-on-Another-Field-Input

    Thank you!