The JavaScipt tab in document properties allow you to view and edit a document's JavaScript actions. These are actions that occur at the document level based on certain events. These events can be on open, close, before saving, after saving, before printing, and after printing. Actions can be added, edited, or deleted using the options in this tab.
Add - Opens the action dialog to add an action to the document
Edit - Edits the currently selected action from the list
Remove - Removes the currently selected action from the list
Document actions define JavaScript actions to be performed following a predefined event.
Open: Open actions will be triggered when the document is opened
Close: Close actions will be triggered when the document is closed
Before Save: Before save actions will be triggered when the document is saved but before the file on the system is actually updated. For example, if you wanted to update a date value with the exact time saved
After Save: After save actions will be triggered once the file has been saved
Before Print: Before print actions will be triggered when the document is printed but before the file is actually sent to the printer. For example, if you wanted to update a date value with the exact time printed
After Print: After print actions will be triggered after the document is printed
Sets the Action to perform a custom Supported JavaScript action that can be typed into the field. Type the JavaScript you wish to be used into the text box.
Named JavaScript is used to define fucntions that can be referenced by other JavaScript calls within the document. These can be referenced when the document is opened or at any other point in time needed. This is useful when you have a common function that needs to be performed on different triggers and actions across the document and helps limit writing duplicate JavaScript code.
Use the name field to define the name to be used when referencing this specific action in the future
Type the JavaScript fuctions you wish to be used into the text box. Sets the Action to perform a custom Supported JavaScript action that can be typed into the field.
Copyright © 2002-Present Qoppa Software. All rights reserved.