How do I make calculation widget clear original calculation when a new option is selected?

  • Profile Image
    kmunjee
    Asked on January 20, 2018 at 04:31 PM

    Hi,

    I am using the form calculation widget to calculate how much a person owes depending on the options they have selected above. If they select what they want correctly the first time, this works perfectly. However, if they make one selection (for example they want to buy 3 tickets), then decide go back to change their original selection (for example they actually want 4 tickets), the form widget adds the two together (it calculates 3 tickets + 4 tickets). I need it to just calculate just their most current section (ie just the 4 tickets). 

    https://www.jotform.com/build/80196432184154

    Can you please help me with this?

    Thank you in advance!

  • Profile Image
    Kevin_G
    Answered on January 20, 2018 at 11:07 PM

    I have checked your form and I was able to see what you mentioned, the issue seems to happen since the fields are retained the selected option even when they are hidden so I would recommend you to set your form to clear hidden fields values, please follow the steps below: 

    1. Go to the settings tab while on the form builder, click on the settings tab and the show more button: 

    15165076301.png

    2. Scroll a bit down until the option "Clear hidden fields values" and select the option "Clear on being hidden": 

    15165076662.png

    I hope this helps. 

  • Profile Image
    kmunjee
    Answered on January 23, 2018 at 02:23 PM

    This fixed it. Thank you so much!!!