How to reset conditional fields when selection is changed?

  • Profile Image
    Asked on February 11, 2019 at 07:59 PM

    I currently have two types of registration set up at different price points. I've set conditional logic to populate the quantity as certain fields are filled out. One is for regular members and the other is for government employees.

    I've set a conditional logic for the quantity to populate based on which fields are filled in, which is then multiplied by the cost per registration type. Issue #1 is that when the fields are cleared, the quantity to does not update. Issue #2 is that when the registration type is changed after the fields have been filled, the total does not update to reflect the proper amount. I don't trust that everyone will notice the total is inaccurate before checking out.

    Help with this would be greatly appreciated!

  • Profile Image
    Answered on February 11, 2019 at 10:36 PM

    If you want to clear the total field and quantity field when selection is changed then simply add another condition.

    Here's my demo form:

    Quantity and Total field will reset its value when the option selected on "Are you a government employee" is changed.

    Guide: How to Insert Text or Calculation into a Field Using Conditional Logic

    Let us know if you are referring to something else so we can check for possible options.

  • Profile Image
    Answered on February 12, 2019 at 12:37 PM

    I don't think I explained my situation clearly enough, however, your suggestion did inform a solution, so thank you!

    For reference, I made the event registration type "read only" so prevent people from clicking around. Then I moved the government employee question higher on the form to get that issue out of the way early on. In the event that someone decides they don't wish to register a second or third person, I've created a condition so that if the field is empty, the quantity will change to "1" for both fields that populate the total quantity. Thanks again!