PDA

View Full Version : Reset a form



TheBigOnion
18 Aug 2010, 6:08 AM
Hello,
how can I clear a form after the user submits it? Basically I'm hiding the form, but if the user re-launches the form (un-hides) then their previous data is in the form. I need to reset the form, or clear each individual text fields.

Thanks,
Michael

Condor
18 Aug 2010, 6:14 AM
formPanel.getForm().reset()?

TheBigOnion
18 Aug 2010, 6:36 AM
Never mind. I figured it out. :)

darthwes
18 Aug 2010, 7:02 AM
Epic thread.