Can we disable decimals on a Number field type?

  • mijot
    Asked on April 25, 2017 at 11:13 AM

    Restrict number field to integers only

    I can set min and max, but how can I enforce integers only?

  • John_Benson
    Replied on April 25, 2017 at 1:03 PM

    If you're referring to this form: http://www.jotform.us/form/63206492179157, I checked the number field and it is working properly.

    Can we disable decimals on a Number field type? Image 1 Screenshot 30

     

    If you're referring to the Subject No. field, you can use the Input Mask feature in the Properties settings. Here's how:

    1. Login to your account and open your form.
    2. Select the Short Text Entry field and click the Properties icon.
    3. Go to the Options tab, enable the Input Mask and type the "#" for number only.

    Can we disable decimals on a Number field type? Image 2 Screenshot 41

    If you're referring to a different form and different issue, please provide the form ID or URL and it would be helpful if you add a screenshot of the issue. Here's a guide: How-to-add-screenshots-images-to-questions-to-the-support-forum

    Thank you.

  • mijot
    Replied on April 25, 2017 at 4:44 PM
    You are referencing the right form, but I’m asking about number fields like the OD OS fields. I want to disallow decimal number.
    Delano Ligu | VP, Information Technology | TearLab Corporation | (905) 486-0424
    ...
  • Mike
    Replied on April 25, 2017 at 7:08 PM

    Unfortunately, this is not possible at this time. The . symbol is a part of our Number validation type.

    Decimals can be disabled with a Spinner field type, but that field type does not support min and max entry limits.