Would I have to assign all form widgets to null individually?
If for example you want to clear search filters you have to assign each one to null value.
Give some more details of what you are trying to do.
Nelson Inácio wrote:
That's exactly what I want to do. Clear all form widgets. I was hoping there would be a single server action for clearing a form.
If you want to clear a edit record you need to create a record variable of same type and assign it to the widget.
If you want to clear a list records or table records you have to create a list variable of same type and assign it to table records list.
What you could do is create a record : ContactEmpty.
If you want to clear the form, instead of assigning each variable individualy, you could do :
Contact = ContactEmpty
(the variable your form is binded with)
If you have many filters on a screen instead of creating several variables, create a structure and then you can clear it like a record