I have a form with a fair amount of JS. Two fields are shown initially, and then depending on what is chosen, other fields appear. (It was too complex to use conditional fields, so it’s all in JS.)
If the user submits the form without filling out a required field, I keep the values and re-show the appropriate fields. Otherwise, they’re hidden on load.
It looks like people can submit the form and then hit the back button though. It keeps the values loaded, they can change any and then resubmit.
Is there a way to clear the page if the user uses the back button?
Thank you!