Solved

Reset a smartform after submission

  • 17 March 2015
  • 4 replies
  • 4 views

Badge +4

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

icon

Best answer by Andrew_Blinco 18 March 2015, 00:00

View original

4 replies

Userlevel 1
Badge +8

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.

 

 

Badge +4

Thanks Andrew, that did it.

Badge +1

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.

Reply