How to clean a form by code

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
wrsalasr
 
 
Posts: 44
Joined: Thu May 31, 2018 1:49 am

How to clean a form by code

Post by wrsalasr » Thu Jun 28, 2018 1:37 am

Hi,

Someone can tell me how I can clean by code when I entering or leaving a page, this is because I have my contact page with Editbox, text Area form, when I enters my data and press the submit button is changed the page, but I use the button of browser backspace and return to the previous page the data entered are still there, the ideal would be that pressing the submit button changes the page but and the forms are cleaned

User avatar
Pablo
 
Posts: 23313
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: How to clean a form by code

Post by Pablo » Thu Jun 28, 2018 6:08 am

When you use the 'back' button then the browser will display the page form cache.
I am not sure if you can clear the form's content in that case.

But you can try by adding an (ondocumentready) event and the 'form reset' action.

Post Reply