Conditions with two decimal places

  • gregpare
    Asked on March 25, 2017 at 9:22 AM

    How can I add a $ to a calculation and make the decimal point two places? I'm using conditions in this form. https://www.jotform.com/build/70688999100

  • Mike_G JotForm Support
    Replied on March 25, 2017 at 12:58 PM

    I have inspected your form and since I see that you only have test submissions in it, may I suggest you use our Masked Input widget instead for your "Groceries Expense" and "Eating Out Expense" fields?

    Conditions with two decimal places Image 1 Screenshot 60

    Then, setup both Masked Input widget in its wizard settings as shown in the image below:

    Conditions with two decimal places Image 2 Screenshot 71

    Do not forget to remove the old "Groceries Expense" and "Eating Out Expense" fields from your form and also, do not forget to update the conditions.

    Conditions with two decimal places Image 3 Screenshot 82

    Now, in order for the output to show two decimal places, you have to do what is shown in the screenshot below to each condition in your form.

    Conditions with two decimal places Image 4 Screenshot 93

    Below is the result of the changes mentioned above to a clone version of your form.

     

    Conditions with two decimal places Image 5 Screenshot 104

    Here's the link to the clone version of your form: https://www.jotform.com/70835238075964

    (Please feel free to clone it to your account so you can inspect it better.)

    I hope this helps. If you have any further questions or concerns, please feel free to contact us again anytime.

    Thank you.