DannyH
Novice

Reset a smartform after submission

Jump to solution

How do you clear all the fields from a smartform after the user has clicked the submitted button?

0 Kudos
Reply
4 Replies
Andrew_Blinco
Novice

Re: Reset a smartform after submission

Jump to solution

Hi PBear74

 

Each view has a clear method that you can use. Select the "Execute a method on the view" action and choose the clear method. This will clear the values for all controls on that view.

 

If you don't want to clear every field you can use the "transfer data" action. Just tick the boxes for the controls you want to clear and leave the value blank.

 

 

View solution in original post

Reply
DannyH
Novice

Re: Reset a smartform after submission

Jump to solution

Thanks Andrew, that did it.

0 Kudos
Reply
Snickers
Novice

Re: Reset a smartform after submission

Jump to solution

On a similar note, I have a ListView on a form that has Filter/Search Enabled. So let's say I use these control to

locate specific data... The view filters as I expect. However, when I Refresh my Form, I wish to also have the

Filter/Search reset as well. When I Refresh, I run the Clear Method as well as the GetMethod for the View, but

the Search Criteria does NOT Reset. Anybody have a solution? Bueller?

0 Kudos
Reply
PHoeffer
Novice

Re: Reset a smartform after submission

Jump to solution

ave you tried just re-running the Initialize method after calling the clear one? That will reset your form to the base state.

0 Kudos
Reply