-
menstromAsked 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.
Thanks,
Marilyn
-
David JotForm SupportReplied on June 22, 2016 at 12:33 PM
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:
https://www.jotform.com/answers/650705-How-to-round-number-to-nearest-25-cents
-
flashimReplied on June 22, 2016 at 1:13 PM
You can try this if it works for you. This will restrict only to numbers
Steps
#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.