Skip to main content
This topic has been closed for replies.
Correct answer try67

You can't press the button but you can imitate that action using this code:

this.resetForm(["Field1", "Field2", "Field3"]);

This will reset those three fields, for example.

2 replies

Inspiring
March 26, 2016

I would look at writing a document level function to perform that task and then call that function for the button  action or any place I need to perform that specific action.

Inspiring
March 25, 2016

That depends on exactly what the button action/s is/are. If whatever action you've assigned to the button can be done with JavaScript, you'd just run a script that does the same thing.

andere123Author
Participant
March 25, 2016

Hi, the button action is to reset the form (but not the whole form).

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 25, 2016

You can't press the button but you can imitate that action using this code:

this.resetForm(["Field1", "Field2", "Field3"]);

This will reset those three fields, for example.