My form needs to create an array, sort it and put it in a variable that might need to be used anywhere on the form. I want this variable to be initialized upon opening the document. Is there a way to make a variable global from a docOpen() function for example?
Entering Document Scripts by Thom Parker.
Functions entered if need to run during the opening process need to be called.
Any script outside a function definition will be executed.
Document level script only run upon opening the document unlike the page open action which runs each time the page is opened.
Global variables are very different than document variables.
Global variables have a scope of all open PDFs.
More than I expected, thanks