I have a content form that is used to submit data. If an error occurs on submit, the error is displayed on the top of the form. But, even if the user refreshes the page, the error is still there and the field state is also not cleared. I want the form to be cleared and reset to initial state on page reload. It shouldn't retain data.

Comments

jaypan’s picture

Is it a custom form? And is it an ajax form?

Contact me to contract me for D7 -> D10/11 migrations.