What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Is there a way to restrict a field to whole numbers only (no decimals)Asked by menstrom on June 22, 2016 at 10:08 AM
Is there a way to restrict a field to only accept whole numbers (no decimals)? I have the field validation set to numeric, but that doesn't prevent decimals from being entered.
I do not believe it is possible to prevent decimals from being entered into number fields. It is possible to use a calculation field to round values that are entered to whole numbers. Here is a guide on how to do so:
You can try this if it works for you. This will restrict only to numbers
#1. Select a number field.
#2. Click on the conditions.
#3. Use conditions as mentioned below
You can also check out the form https://www.jotform.me/form/61602220200432
Hope this helps.