As a library administrator, you can configure custom actions to trigger a specific custom script on document classes. You can trigger either Update Action or Viewer Action custom scripts on a document class. Learn more: Create custom script.
1. Access the library administration and select Document classes.
2. Click a document class name to open the document class configuration.
3. Select the Custom tab to configure a new custom action.
4. Click the Add button next to Update custom actions or Viewer custom actions.
Notes:
– The Update custom actions and Viewer custom actions boxes are displayed 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.
5. Enter a name for your viewer custom action. This value can be retrieved in your custom script 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.
6. Select the custom script you want to trigger from the drop-down list.
7. Click Create.