Enable a web custom action
1
Open the Document Definitions dialog box
Open the Project Setup Station and click Project → Document Definitions.
2
Edit the Document Definition
In the Document Definitions dialog box, select the appropriate Document Definition and click Edit.
3
Enable the web custom action
Open the field properties, click the Custom Action tab, and select the Enable Web Custom Action option.
How web custom action scripts run
User scripts intended for the Web Verification Station are written in JavaScript. Unlike the Web Services API provided by the Application Server, these scripts run directly in the user’s browser window when the user clicks the corresponding button on the data form. A user script runs in a separate<iframe> element, which must be closed after the script completes. The Web Verification Station and the <iframe> element communicate through postMessage using JSON-RPC.
By default, the <iframe> element is positioned in the <body> of the verification window. You can also place it in the central pane beneath the document image. To do this, specify the following path in the first line of the script: // mode: documentEditor.
