Clear hidden fields after selection changes

  • 416soclean
    Asked on December 20, 2016 at 11:21 PM

    My form can be found here: https://www.jotform.com//?formID=63118467835261

    I have gone through a whole bunch of your support threads and have not found the answer.  Basically, lets take Duct Cleaning as an option.  If a customers selects it and then the appropriate fields are unhidden.  They then select the sq feet of their home and it calculates the total.  They also have an option for additional services.  

    Let's say they change their mind and decide they no longer want duct cleaning.  They uncheck the Duct Cleaning option at the top and I would like to have the Sq. Feet field, the Platinum package and Duct Cleaning total to reset and the real time quote field to reset to 0.

    I have tried the reset on hidden option under preferences, however, it does not do anything.  Can someone please assist? I have to have this form out for a client by the end of the week.

     

    Thanks

  • Ian
    Replied on December 21, 2016 at 2:36 AM

    From the Old conditions I tried removing Condition 2 and 3 as they were conflicting with condition 1

    Condition 1 checks if the check box is empty

    Condition 2 says if not equal to Duct Cleaning 

    Conflict is that  In Condition 1 when check box is Empty at the same time it is not equal to Duct cleaning as it is empty

    So its not able to decide which condition to follow

    Clear hidden fields after selection changes Image 1 Screenshot 40

     

    New Condition should be

    Clear hidden fields after selection changes Image 2 Screenshot 51

     

    Result of the above conditions is as follows :

    Clear hidden fields after selection changes Image 3 Screenshot 62

    You can follow the same for other checkboxes.

    Hope this helps.

     

     

  • 416soclean
    Replied on December 21, 2016 at 9:54 PM

    Thanks - this helps partially.  I cannot clear the real time quote field as there maybe totals from the selections of of the other services so it can't go back to zero.  Is there CODE that can effectively change the state of the checked box.  So I'm thinking, if Duct Cleaning is de-selected, how do I change the state of Upgrade Platinum to unchecked?  I wish the option in the Preferences actually worked.

  • candy
    Replied on December 22, 2016 at 2:10 AM

    Hello,

    I have checked your website and your form that you have embedded in. Related to your questions:

    "I cannot clear the real time quote field as there maybe totals from the selections of the other services so it can't go back to zero."

    As I have checked your form, if a user selects 0 from all drop down options, the real-time quote already seems as zero as ou can see the screen below:

    Clear hidden fields after selection changes Image 1 Screenshot 40

     "Is there CODE that can effectively change the state of the checked box? So I'm thinking if Duct Cleaning is de-selected, how do I change the state of Upgrade Platinum to unchecked? "

    You can do this with conditions. I have cloned your form on my side and I have set a condition in order to change the state of Upgrade Platinum to unchecked if Duct Cleaning is unselected as you can see the screenshot below:

    Clear hidden fields after selection changes Image 2 Screenshot 51

    Please check the following screen to see this case:

    Clear hidden fields after selection changes Image 3 Screenshot 62

    If you have more questions or further assistance, let us know.

    Thanks.