Hello,The field must contain whole numbers, nothing after the comma.

  • JBsignsbvba
    Asked on September 14, 2020 at 7:14 AM

    Hello,

    The field must contain whole numbers, nothing after the comma. In other words, it must not be possible to insert a comma or a dot. Please find a solution.

    Thanks

  • mediaprogenomics
    Replied on September 14, 2020 at 7:52 AM

    Hello,


    Do you want to restrict the field to only accept whole numbers(no decimals)? You can achieve this by using Form Calculation widget. Please select Add Form Element >> WIDGETS >> Search for Form Calculation widget. On the right hand side, click ... >> select OPTION and find Decimal Places in Numerical Results. Select 0 from pull down menu.


    1600084243IMG1 Screenshot 10


    1600084264IMG2 Screenshot 21


    I hope you will get the result you are looking for by following this.


    Cheers,


    Yuta

  • Vick_W Jotform Support
    Replied on September 14, 2020 at 8:28 AM

    Hi there,

    If you wish to restrict a field to so it can only accept a whole number then here is how you can do it. You can check this sample form first that I've created for you.

    https://form.jotform.com/202573797779072

    Here is how you can clone it.

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Here is how you can stop users from entering a "." or a "," in the field. These are the fields that you'll need.

    1600086341 5f5f61456a8a2 undefined Screenshot 10

    Here are the form calculation settings.

    1600086406 5f5f618698986 undefined Screenshot 21

    Following is the condition you'll need to create.

    1600086465 5f5f61c10cd73 undefined Screenshot 32

    You can not enter a "," or "." into the field now.

    Let us know if you have any questions or concerns.

    Thanks.