Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I think that you can achieve the form behavior you want. But it's not simple.
Code on form fields is driven by events, such as clicks and data changes. The Acrobat JavaScript model does not provide functions for trigging these events artificially, except for the Calculate event. The best way to share script functionality is to put that functionality into a function defined in a document level script. Then call the function whereever it is needed.
All the code in a Document level script is run when the PDF is opened. So you can use it to define shared data and functions, and to run document initialization code.
Here's an article on the topic:
https://www.pdfscripting.com/public/Document-Level-Scripts.cfm
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more