Custom Form Reset


(Nathan Barnes) #1

Hi All,

 

Hoping someone can help please. I've searched the forum but suprisingly cannot find anyone asking this question before. Bascially, I have a multipage form (3 pages.) At page 2, I provide the user with an option to go back to the beginning of the form (it's a course registration form). My problem is, I need the form to 'forget' any questions asked. Bascially, I would like to know a way to clear the form (and any questions answered on previous pages) in Javascript.

 

Any help would be greatly appreciated.


(Nick Papadatos) #2

So if I understand your question correctly if a user clicks the 'back to the beginning' button on page two (takes them back to the start) it clears all form fields?


(Nic Hubbard) #3

This sounds like a local browser issue. Where it is saving the field data.


(Nathan Barnes) #4

NickyP - Yes, the user has answered questions on page 1. I direct them back to beginning so they can start again however because they have already answered the questions on page 1, the website skips it and lands on page 2. I'm assuming I just need some one to "reset" the whole form but am not sure how.


#5

Hey guys would you use the keyword for the reset button?
%reset_button% but I’m not sure how that works for a multipage form.


Sorry if that’s a daft response


(Nick Papadatos) #6

Not pretty but you could always use the '/_nocache' - It worked for me

 

<a href="./?a=your_form_asset_id/_nocache">clear and start again</a>