{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":44952,"path":"security-management/security-incident-response/sir-new-ui-setup-enable-uiaction.md","title":"Enable UI Actions","bundle":null,"doc_type":null,"release":"australia","body":"\n# Enable UI Actions\n\nBefore you configure any UI Actions, you must perform certain steps to enable them so that they are available for configuration in the Security Analyst Workspace.\n\n**Note:** To modify the UI actions, log in as a user with the following roles:\n\n-   ui\\_action\\_admin\n-   ui\\_page\\_admin\n-   web\\_service\\_admin\n\nThere are two types of UI actions that can be configured for the Security Analyst Workspace:\n\n-   Dialog Based UI Action\n-   Server-side UI Action\n\n**Dialog Based UI Action**\n\nTo enable dialog-based UI actions in the Security Analyst Workspace, make the following changes to the UI pages associated with the respective standard UI Actions.\n\n1.  **HTML section**: Modify the HTML section to include the `react` input tag. The `react` input tag value is used in the client script section to identify if the UI Page has been launched from the Security Analyst Workspace. An example is shown below:\n\n    `<input id=\"react\" name=\"react\" type=\"hidden\" value=\"${JS,HTML:sysparm_react}\" />`\n\n2.  **Client script**: Additional logic needs to be written in the client script when the `react` flag is true. This is needed to handle the **Submit** and **Cancel** button events shown as part of the dialog window.\n    1.  onCancel \\(\\) event handler needs to dispatch the ‘SIR\\_WORKBENCH\\_POPUP\\_CANCEL’ event from the Security Analyst Workspace\n    2.  onSubmit \\(\\) event handler needs to dispatch the ‘SIR\\_WORKBENCH\\_POPUP\\_SUBMIT’ event from the Security Analyst Workspace\n3.  The execution of the processing script is skipped from the Security Analyst Workspace context as the ‘onSubmit’ action has been modified to return false when the `react` input tag value is true. The logic of the processing script needs to be handled either via a client callable script \\(invoked via GlideAjax API\\) or REST resource endpoint.\n\nRefer the following sample UI pages for more details:\n\n-   Related List UI action example: Publish to watchlist \\(UI page name: publish\\_to\\_watchlist\\)\n-   Form UI action example: Create Problem \\(UI page name: create\\_prb\\_change\\_inc\\)\n\n**Server side UI Action**\n\nTo enable server side UI actions, you must do the following:\n\nThe logic of the standard UI action script must be handled as part of a scripted REST resource.\n\nRefer to the following sample Form UI actions for more details:\n\n-   Create Outage\n-   Cancel\n\n"}}