A folder-level JavaScript is a JavaScript file (.js) that runs when Nitro PDF Pro starts. Use a folder-level JavaScript to:
- Load reusable JavaScript functions into the application.
- Run methods or access properties that only work during the application startup event.
Examples:
- Load the current Windows user name into a global JavaScript variable at startup.
- Load a list of employee names into a JavaScript array at startup. Forms that open in Nitro PDF Pro can then use this array.
To add or edit a folder level JavaScript
- Open Nitro PDF Pro
- On the Forms ribbon, in the Document Setup group, click on the arrow next to JavaScript and then select Folder Level

- The directory where the JavaScripts are stored opens
- Add a new JavaScript file to the folder, or edit an existing file