What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Form Preferences [Clear Hidden Fields]: Why fields are not clearing up while they are hidden?

    Asked by HACA on December 21, 2016 at 05:43 PM

    I have set up fields to calculated values based on quantity drop down selections.  It works; however, if a user changes the toggle from payment by credit card to payment by check it remains the same total. Or, if a user changes guest to member, but selected Guest Vendor that value will still be added.  Or, if someone selected member then switched to guest, then the member quantity would be added.  

    Currently, the calculating fields sums up each drop box options, so that is why all fields are included.  I changed the form preference to clear hidden fields, but it did not work. I thought about changing the calculating field conditions, but there would be too many variations. 

     

    Listed below are the fields that I would like to automatically clear if the user toggles between member and guest or credit card and cash/check options.  

    https://form.jotform.com/HACA/reservation

     

    Thanks,

     

  • Profile Image
    JotForm Support

    Answered by Kevin_G on December 21, 2016 at 10:09 PM

    Conditionally you could clear the options selected in one field, for example, in a check box or radio button, this could be achieved by adding a 0 to the field.

    Sample condition: 

    With drop downs it should be "-1" instead of "0". However, you would need to add a new field where you will ask if the fields need to be cleared. 

    Regarding to clear hidden fields, this should be the best way to handle this scenario; however, it does not work in your form and it does not work in a sample form on my end either. 

    I will report this to our second level so this can be checked and resolved by our developers. 

  • Profile Image
    JotForm Support

    Answered by NicholasWestley on December 22, 2016 at 02:38 AM

    Hi,

    The "clear field on hide" functionality is now working as it should.  Sorry for the inconveneince.

    Regards,

    Nicholas

  • Profile Image

    Answered by HACA on December 22, 2016 at 02:46 PM

    Great.  Thanks for checking it out.  Prior to submitting the question, I did attempt to use  the clear field option and got it to work except the total amount would stay the same.  

    Clearing Fields still not working: Not sure if this is a different problem and requires a new thread or not.  However, it is all related to Clearing Fields not working properly. 

     

    I have tested the form and fields now clear when toggling between Member and Guest.  

    Unfortunately, total amount due (regardless of payment type) fields clear so that the amount due is $0.00.

    Thoughts...

    This is what shows on form before submission

    This is the response:

     

    When attempting to use the PayPal Payment Gateway, amount due is zero so it goes to Thank you page not PayPal. 

    Here is what the report shows, so maybe it something with the initial amounts?

     

     

    Without clearing fields, the amounts and submissions work correctly.

     

    Thanks,

     

  • Profile Image
    JotForm Support

    Answered by jonathan on December 22, 2016 at 03:16 PM

    Thank you for the confirmation that the original issue was already resolved.

    But I think the latest issue is not related to the Clear Hidden Field Values functionality anymore.

    It was rather has to do how the Calculation field work. 

    I created a separate thread for it here https://www.jotform.com/answers/1018156 so that we can resolve it properly.

    We will attend to it shortly.

     

     

  • Profile Image

    Answered by HACA on December 23, 2016 at 11:48 AM

    Everything is now working.

    Thanks for the assist!