Is it possible to reference a Form or a Button on a PDF using Javascript? What I am trying to do is to write Javascript code that will submit a form, or if not that, click a Button of my choice that submits the form.
The problem I have here is that I don't know how to reference the button or the form in Javascript.
So is there a way to achieve this?
In Acrobat JavaScript, you can not execute "click a button" as an action.
Instead you execute whatever the MouseUp event of that button has assigned. If it is a function, execute the function, if it is some lines of JavaScript code, execute those lines.
In any case, you will need a trigger event. When you have specified it, the rest is straightforward.
I also strongly recommend to have a good look at the Acrobat JavaScript documentation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.