How to clear additional fee in Total Box when no items are selected

  • randi25
    Asked on September 22, 2019 at 10:59 PM

    Hi, I created a form that includes a calculation field based on items selected plus an additional fee, but when the form is sent the total shows the additional fee even when no items are selected or entered. How do I get this box to show zero if nothing is selected?



    Jotform Thread 1974210 Screenshot
  • AndrewHag
    Replied on September 23, 2019 at 1:41 AM

    It seems the Total amount is not displaying when no items are selected. I can see the field only when I select one of the options.

    1569217144National Membership and or Don Screenshot 10

    But, when I select Donation - additional fee is displaying even when the Donation Amount is empty. Do you wish to display 0 in the Total field if the Donation Amount field is empty?

    1569217234National Membership and or Don Screenshot 21

  • AndrewHag
    Replied on September 23, 2019 at 1:43 AM

    It seems the Total amount is not displaying when no items are selected. I can see the field only when I select one of the options.

    1569217144National Membership and or Don Screenshot 10

    But, when I select Donation - additional fee is displaying even when the Donation Amount is empty. Do you wish to display 0 in the Total field if the Donation Amount field is empty?

    1569217234National Membership and or Don Screenshot 21

  • randi25
    Replied on September 23, 2019 at 9:12 AM

    I had a condition that hid the field if the Select Only One Membership Type and/or Donations items were not selected. I removed the condition so you can now see the Total section.


    https://form.jotform.com/92647905339165

  • AndrewHag
    Replied on September 23, 2019 at 10:51 AM

    I see that you are passing the value to the Total from the Subtotal field.

    To resolve the issue, please remove the formula from the Subtotal calculation widget. Then go to Settings > Conditions > Update/Calculate Field and set the condition below:

    1569250163The Easiest Online Form Builde Screenshot 10

    Here we are using the same formula but, with the help of conditions so the Total filed will contain 0 if no options are selected.

    Here is the sample form: https://form.jotform.com/92654717038968

    You can also clone the form and test it: How-to-Clone-an-Existing-Form-from-a-URL

  • randi25
    Replied on September 23, 2019 at 11:24 AM

    Thank you very much! That solved my issue.