How do you clear all the fields from a smartform after the user has clicked the submitted button?
Best answer by Andrew_Blinco
View originalHow do you clear all the fields from a smartform after the user has clicked the submitted button?
Best answer by Andrew_Blinco
View originalHi 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.
Thanks Andrew, that did it.
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?
ave you tried just re-running the Initialize method after calling the clear one? That will reset your form to the base state.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.