I have a WFFM form, when I submit it to success and press back button on browser, the data still stay on the fields. How I can clear or init form ?
Asked
Active
Viewed 708 times
1 Answers
0
I think that this not a problem of Sitecore or WFFM. Modern browsers implement back-forward cache. And I believe you will see same behavior on regular ASP.Net forms.
This happens due to browser don't actually refresh pages on back/forward buttons click.
To change this behavior you should add your custom JavaScript on page that will clear WFFM form fields. This topic could be useful.
-
you right, it just occurred with Chrome and my solution is prevent the browser re-filling again. $("form").get(0).setAttribute('autocomplete', 'off'); – Ken Nguyen Jul 04 '16 at 07:51