0

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 ?

Ken Nguyen
  • 95
  • 10

1 Answers1

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.

Community
  • 1
  • 1
Anton
  • 9,682
  • 11
  • 38
  • 68
  • 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