As a library administrator, you can configure custom actions to trigger a specific custom script in document classes. This lets users trigger specific custom scripts directly from documents.
You can configure Update Action or Viewer Action custom scripts in a document class. Learn more: Create custom scripts.
1. Open the library administration.
2. Select Document classes.
3. Click a document class name to open its settings.
4. Select the Custom tab to configure a new custom action.
5. Click the Add button next to Update custom actions or Viewer custom actions.
Notes:
– The Update custom actions and Viewer custom actions boxes appear only if update action or viewer action custom scripts have been configured. Learn more: Create custom scripts.
– You can configure multiple custom actions for one document class.
6. Enter a name for your viewer custom action. You can retrieve this value by calling the method _getDisplayName.
Note: This name will be displayed in the custom action menu displayed to end users if a viewer custom action is configured.
7. Select the custom script you want to trigger from the drop-down list.
8. Click Create.