You are viewing limited content. For full access, please sign in.

Question

Question

Resetting a Form?

asked on February 11, 2014

 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.

0 0

Answer

APPROVED ANSWER
replied on February 11, 2014 Show version history

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.

4 0
replied on February 11, 2014

That's nice to know. Thanks!

0 0

Replies

replied on February 11, 2014 Show version history

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. 

2 0
replied on February 11, 2014

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.

1 0
replied on February 26, 2014

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">
1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.