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 conditionally clear a date fieldAsked by Deborah.Miller on May 03, 2016 at 09:07 PM
Hi there, when a user selects "Use hard end date" for End date type and selects a date, if they change their mind and select "Use duration-based end date" the hard end date value stays, and vice versa.
I can clear the duration based values, but I can't figure out how to update the date to "null" if they select duration-based.
You can set your form to clear once the field is hidden by going to Preferences > Advanced Settings tab > Clear Hidden Field Values > select Clear on Being Hidden
Please do let us know if you have questions.
Thank you - I have other calculated fields. If I select that, does it clear all hidden fields or only upon the action of a field being hidden?
If you have a hidden field with a value, it will not be affected, since the action made by the function is to clear the field upon the moment it gets hidden, and not be cleared upon the loading of the form.
However, to be sure, I would suggest to make tests as well after making the change to ensure that it will work as expected.
Please do get back to us if you have further questions.