clear text boxes & other controls in infopath form

i need a button in an infopath form which if i clicked it all the controls in that form will be cleared
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Clay FoxDirector of Business IntegrationCommented:
You can do a reset of the form, equivalent to closing and opening a form again, but often this is not desirable.

Otherwise you would need to use rules or point all fields at a reset bit that kicks off a set field to "".

Typically you need to architect the form where they need to start the form over, if they want to start over.

I sometimes will use two forms, the first has some of the persistent data, when the user clicks to begin it actually opens a second form which then is for one record and then closes when they are done and they go back to the first form and start again. Pretty seamless and gets the job done.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HassanayAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.