Skip to main content

Hi All,


I'm sure I'm missing something simple, but how would you clear all the controls on a smartform when the Create button is clicked?


I could have an elaborate rule which will set all the text boxes back to empty strings, but there are about 20+ controls on the form. It does not seem like the best way to clear the form.


Is there a clear form rule or something I'm missing?


Please advise the best way of clearing a form.


Thank you,

I managed to solve this one.


The view has a Clear method which you can execute to clear all the controls.


You can also set which controls should be cleared.


Hope this helps someone else out there!


Hi JohanL



You can also set which controls should be cleared.



I am not able to achieve this, it still clears all the controls? Keep in mind that I'm new to K2.


My setup:
I have a simple view (PMB_Region New) in a form (PMB_Region Admin). I have the following rule on my form:



After clicking "(configure)" the following window appears:



"Input Mappings" were empty whereas "Output Mappings" were not. Isn't it suppose to be within the "Output Mappings" where you can choose which controls you want the Clear-method to clear?


Reply