Page 1 of 1

How To Automatically Re-Set Form?

Posted: Fri Jan 15, 2010 12:22 pm
by jbh
Hey,

I have a form with 10 surveys. Each survey has a submit button.
One problem with this is that if one submits a survey and then tries another one,
the values of both surveys are passed.

This can be solved if I can automatically, after my "post submission" functions conclude
it can re-set it in the background. One issue is that I have a css overlay and if I redirect
the overlay disappears. It's critical that the overlay is kept.

So, is it recommended to create a reset function immediately upon submission of the survey?
What is the best idea here?

Thanks

Re: How To Automatically Re-Set Form?

Posted: Fri Jan 15, 2010 2:34 pm
by pickle
You can't really reset the form before it's submitted - you'll lose all the data. After the submission is another page load.

I'm pretty sure forms have a reset() function you can call.

Re: How To Automatically Re-Set Form?

Posted: Thu Jan 21, 2010 4:00 am
by carolin
you can use reset() function call..