JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
How to automatically clear input value in hidden fieldAsked by EMYEstetica on December 16, 2014 at 12:57 AM
Calculator form will calculate any field that has been input by customer.
My concern is the field amount will still be calculated if the customer choose to cancel by UNTICK the box (hidden field). Unfortunately the earlier input remains if it was not cleared manually.
Is there a way to automatically clear the value or do not include the value if it was hidden?
It's hard to explain it here, maybe the image will help.
hidden JotForm uploads height
You would need to create additional conditions to change the calculation in the DELIVERY/TRUCK FEES field when the No. of Moves field is hidden. The same would apply to the Distance Location (miles) fields. I'll create a demo a little later to better explain what I mean.
Due to the current limitations of the conditional wizard, the solution I had in mind won't work. However, if radio buttons were to be substituted for the checkboxes in Type of Truck to reserve field, the solution would work, as demonstrated in this demo. As such, I would recommend that you delete the "Type of Truck to reserve" field in your jotform and replace it with a radio button one. Below is a screenshot of the summary of conditions in the demo but to get a better idea of its setup, clone it and carefully examine its settings.
Conditions 4, 5 and 6 were created using the Update a form field value option:
Also, if you clone the demo you'll discover that the "DELIVERY/TRUCK FEES" field is just a regular textbox. This is because when "Update a form field value" conditions are attached to calculation fields, they can't be set to read-only via those conditions.
If you specifically needed to use checkboxes for the "Type of Truck to reserve" field, the only workaround I can think of would be to embed the form's full source into a web page and add a script. (We would provide the script.)
If you need clarification on anything, we'd be happy to help.
Please do let us know if you have successfully resolve your problem using the workaround mentioned by my colleague. We'll wait for your response.
Yes, it work very well.
Again, you guys never stop to amaze me.
Thank you so much.
In behalf of my colleague, you are most welcome. I'm glad that it worked for you.
Thank you for your kind words. If you needed an assistance again or have any other concerns, please feel free to open up a new thread here in the forum, we'll be more than happy to help you. :)