Conditions with two decimal places

  • Profile Image
    gregpare
    Asked on March 25, 2017 at 09: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

  • Profile Image
    Mike_G
    Answered 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?

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

    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.

    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.

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

     

    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.