- EMYEsteticaAsked 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.
- JotForm SupportabajanAnswered on December 16, 2014 at 08:03 AM
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.
- JotForm SupportabajanAnswered on December 16, 2014 at 12:17 PM
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.
- CharlieAnswered on December 16, 2014 at 09:11 PM
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.
- EMYEsteticaAnswered on December 17, 2014 at 09:27 AM
Yes, it work very well.
Again, you guys never stop to amaze me.
Thank you so much.
- CharlieAnswered on December 17, 2014 at 09:31 AM
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. :)