Possible to reset fields when the user change their answer

  • Hulbrock
    Asked on June 24, 2024 at 11:52 AM

    Hello, My form has various calculations. If a user changes a number input field along this process, is it possible to reset a radio button and subsequent input number fields?


    thanks

  • Danilo JotForm Support
    Replied on June 24, 2024 at 12:02 PM

    Hi Mark,

    Thanks for reaching out to Jotform Support. I checked your form and I noticed most of the Radio button and other fields are not hidden, if the user changes their mind and changes the answer from the previous field it won't clear the radio button. They, need to manually change it as well.

    That option is used to clear or don't clear the values from the fields that are hidden with the conditional logic.

    Clear On Being Hidden - will clear the values from the conditionally hidden fields right away

    Clear on Submit - will clear the values from the conditionally hidden fields on submit

    Don't Clear - will not clear the values from the conditionally hidden fields

    I checked and your form is not hiding the fields with the conditional logic. on How to Show or Hide Fields Base on User's Answer

    Let us know if there’s anything else we can help you with.

  • Hulbrock
    Replied on June 24, 2024 at 2:57 PM

    Thank you, is it possible when a user changes a number input to unset / clear a checkbox?

  • Aravir JotForm Support
    Replied on June 24, 2024 at 3:10 PM

    Hi Mark,

    I reviewed your BMW CCA Club Racing PWR Disclosure form and I can't seem to find a checkbox field. Are you referring to the Terms & Conditions widget? Can you share a screenshot of the checkbox you're referring to? We have a guide on How to Post Screenshots to Our Support Forum. Also, can you confirm which field on your form your user can input a number?

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • Hulbrock
    Replied on June 24, 2024 at 3:54 PM

    Is chat available? I am looking at the option when a user changes a number input, other fields are reset to blank.

  • Kenneth JotForm Support
    Replied on June 24, 2024 at 5:02 PM

    Hi Mark,

    Currently, we do offer Live Chat Support, there are a limited number of agents working in each time zone. So, sometimes, it gets disabled, and you can't see it on our pages. When it is available, you'll see a pop-up if you're logged into your account on most of the pages, like Form Builder, Jotform Tables, Jotform Inbox, and so on, like you see in the lower-right corner of the image below:Possible to reset fields when the user change their answer Image 1 Screenshot 60If you don't see that option on the page, and you have a question, just reply to this thread, or you can create a Forum Thread from the Contact Us page. And we’ll be happy to help. 

    Now, coming back to your question, We can implement a workaround using conditional logic to reset the fields when changes are made during edit mode. I have created a demo form to demonstrate this solution. Let me show you how:

    1. In Form Builder page, select Settings located at the top orange menu bar.
    2. Under Conditions tab, select Add Conditions.
    3. Now, Select Update/Calculate Fields. Possible to reset fields when the user change their answer Image 2 Screenshot 71

    Let's proceed with applying these conditions in the correct order. Changing their sequence alters the priority and may cause them to malfunction.

    1. This condition takes priority, so changing the first number will immediately hide the fields below it. Possible to reset fields when the user change their answer Image 3 Screenshot 82
    2. This condition runs to update the hidden number. Possible to reset fields when the user change their answer Image 4 Screenshot 93
    3. Finally, make sure Form settings has the Clear Hidden Fields Values to Clear when hidden. Possible to reset fields when the user change their answer Image 5 Screenshot 104

    Feel free to clone my Demo Form.

    Give it a try and let us know how it goes.

 
Your Answer