Hi everyone - is there a way to do this? Reset so the user can start the form over again (e.g. have a button at the bottom of a form that states Reset)??
Thanks.
Hi everyone - is there a way to do this? Reset so the user can start the form over again (e.g. have a button at the bottom of a form that states Reset)??
Thanks.
This is actually very easy. Place a custom HTML field at the bottom of your form and enter the following HTML piece in it:
<input type="reset">
This will place a Reset button there, which will blank out all fields when clicked. There isn't anything else you need to do.
I think all you need to tie it to is:
location.reload();
This reloads the page. Not sure if that works with forms however. You may need something to just set all forms to nothing. This can get complex if some of them are required drop downs if they were required, as you can't easily set them back to blank!
edit: I just tried it, it should work the same as you clicking refresh on your browser.
I think currently you would have to code the javascript and the button to accomplish this. This article has a great example of how to accomplish this behavior though.
Hi,
I just tried this and it works great in all browsers except for Mozilla FireFox. There is another way of calling this function as below that also supports Mozilla FireFox.
<script> function reloadPage() { document.location.reload(true); } </script> <input value="Reload page" onclick="reloadPage()" type="button">