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.
Child fields are still shown even if parent fields are hiddenAsked by designisgrowth on October 19, 2015 at 03:56 PM
Check out this link:
I have it set up so that it displays products once you click on a service line. The form then displays all the products that have to do with that service line. Once you check mark a product I have a conditional that displays the quantity. The problem that I have is once you deselect the first conditional (the service line) the quantity still shows up and I don't want it to. I have attached images to show what I mean. Thanks for your help!
Any takers for this one?
That's because the parent field is still filled even if they are hidden that's why the child fields that depends on it are still shown.
That can be easily resolved by enabling the "Clear On Being Hidden" option on form preferences.
Thanks for the answer! Do you know where the code to this change is in the source code? I don't want to re-import the source code so if I can just add it manually that would be great.
Sure, that's possible. The script is already on your form source code, you just have to enable it.
Simply find this code on your form source code JotForm.clearFieldOnHide="disable"; and change disable to enable.
Thanks! That worked out perfectly. You guys are the best!
~ Daniel Villamizar
On behalf of my colleague, you are welcome.
Feel free to contact us if you have any other questions.