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.
I want to clear a field when it is hidden?Asked by canichols on December 10, 2015 at 08:54 AM
I have a form that hides/shows fields based on the user's selection. Let's say the user selects option A so two additional fields are shown. Then the user changes his mind, clicks on the Back button, and now selects option B. I have noticed that the selections for the now hidden fields are no longer blank because the user had made selection when he choose option A. When the user clicks on submit I'll get answers for option A and B. It makes sense to me that I should clear the fields before or after I hide them but I don't see that option. Thank you for your time and attention to this matter.
Yes, that is correct. The form fields won't clear it's value because it was hidden, however, this can be fixed by setting the "Clear Hidden Field Values" option in your preferences.
If they conditionally hides, then "Clear on Being Hidden" should fix it.
Do let us know if that works.