Copy link to clipboard
Copied
Hi,
i want to click a button using a script in acrobat pro dc, how can i do this?
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi, the button action is to reset the form (but not the whole form).
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now