Numeric validation in the text box field allows a hyphen

  • Profile Image
    flaviafigueiredo
    Asked on May 17, 2017 at 04:41 PM
    For Number isnt possible to put "9-" but is possible to put "9-9". I dont wanna the last answer.
  • Profile Image
    Welvin
    Answered on May 17, 2017 at 04:47 PM

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

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

  • Profile Image
    flaviafigueiredo
    Answered on May 22, 2017 at 02:46 PM

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

    *I dont wanna limited the characters 

  • Profile Image
    Kiran
    Answered on May 22, 2017 at 04: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! 

  • Profile Image
    flaviafigueiredo
    Answered on May 22, 2017 at 04:31 PM

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

  • Profile Image
    Kiran
    Answered on May 22, 2017 at 05: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!