Title: Clear data from form
Last modified: August 20, 2016

---

# Clear data from form

 *  Resolved [northstar67](https://wordpress.org/support/users/northstar67/)
 * (@northstar67)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/clear-data-from-form/)
 * Hello.
    After the form is submitted, if I hit the back button in the browser –
   IE8-9, Firefox 17.0.1 and Chrome 23.0.1 – the entered data is still visible. 
   A refresh makes it disappear but ideally after the page redirects to a Thank 
   You page all data should clear. What code can be added and where to avoid such
   behavior? Thank you for help!
 * [http://wordpress.org/extend/plugins/visual-form-builder/](http://wordpress.org/extend/plugins/visual-form-builder/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/clear-data-from-form/#post-3307756)
 * This is how browsers work when it comes to forms and is expected behavior.
 *  Thread Starter [northstar67](https://wordpress.org/support/users/northstar67/)
 * (@northstar67)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/clear-data-from-form/#post-3307759)
 * Hi Matthew,
    thanks for the reply. I am aware of that behavior , what I was looking
   for is some form of script to include in the php files that tells the data to
   disappear after Submit is clicked. I have seen JavaScript to that effect in various
   forums, but I am not sure how to apply it to your code. If it is a simple matter,
   your help and advice is welcome. If not, thanks anyway for the help.
 * Ciao

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Clear data from form’ is closed to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

## Tags

 * [clear form](https://wordpress.org/support/topic-tag/clear-form/)

 * 2 replies
 * 2 participants
 * Last reply from: [northstar67](https://wordpress.org/support/users/northstar67/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/clear-data-from-form/#post-3307759)
 * Status: resolved