reduce decimal places

  • steves2002
    Asked on July 18, 2017 at 9:11 AM
  • Chriistian Jotform Support
    Replied on July 18, 2017 at 11:22 AM

    Are you referring to the Age field on this form: http://www.jotform.co/form/71978156881876? As per checking the form, it seems you are computing the Age based from the given Birth Date. However, I noticed that the computed value has decimal places.

    reduce decimal places Image 1 Screenshot 70

    To reduce/remove the decimal places and always show an integer result, please follow the instructions below.

    1. Open Widget Setting wizard.

    2. Click on the ... icon for more options.

    reduce decimal places Image 2 Screenshot 81

    3. Go to Options Tab.

    4. Set the "Decimal Places in Numerical Results." option to 0.

    reduce decimal places Image 3 Screenshot 92

    5. Save Changes.

     

    Once you have set this up, the Age field should display an integer. 

    reduce decimal places Image 4 Screenshot 103

     

    Here is a sample cloned form that you can check: https://form.jotformpro.com/71984511839972

     

    Note: On your Age computation, I noticed that the decimal point on the 365.25 is considered as String type instead of Number type.

    reduce decimal places Image 5 Screenshot 114

    Please change the decimal point to Number type so the computation and setup will work properly. Just click on the [ . ] icon to change it to Number type.

    reduce decimal places Image 6 Screenshot 125