{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":12376,"path":"employee-service-management/legal-request-management/configure-action-legal-request-lsp.md","title":"Configure an Action for legal services on the Standard ticket page","bundle":null,"doc_type":null,"release":"australia","body":"\n# Configure an Action for legal services on the Standard ticket page\n\nAdd or modify an Action and its functionality on the Standard ticket page for a legal request.\n\n## Before you begin\n\n-   Review the configuration of the script include, scripted extension points and service portal widgets for legal services installed with the Legal Service Delivery apps.\n-   The Actions is one of the sections of a standard ticket page of the Service Portal, so get familiar with the [Standard ticket page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/standard-ticket-page.md) and [Service Portal](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_ServicePortal.md).\n-   For more information about configuring service portal widgets, see [Service Portal widgets](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/service-portal-widgets.md).\n-   For more information about using and customizing the script includes, see [Script includes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/scripts/c_ScriptIncludes.md).\n-   Ensure that you've set the application scope to Legal Request Management.\n\nRole required: admin\n\n## About this task\n\nThe base system `DefaultLegalTicketActions` script provides the configuration of common actions for all legal request types. You can override these common actions for a specific legal request type or add more actions.\n\n## Procedure\n\n1.  Add or modify an action in the scripted extension point.\n\n    1.  Navigate to **All** &gt; **System Extension Points** &gt; **Scripted Extension Points**.\n\n    2.  Search and select the **LegalTicketAction** extension point.\n\n    3.  Add or modify an implementation for a practice area.\n\n        -   To add a new implementation for a practice area, click the **Create implementation** related link.\n\n            On the Script Include form, update the script as required.\n\n            1.  To restrict this implementation to the practice area, add the following code to the **canHandle** parameter:\n\n                ```java\n                 canHandle: function(tableName) {\n                        return tableName == '<TableName>'; //Replace TableName with a practice area table name\n                    },\n                ```\n\n            2.  To add a new action, update the **process** method.\n\n                For reference, see an existing **process** method of the `DefaultLegalTicketActions` script include or the implementation of another practice area.\n\n        -   To modify an existing implementation, open a class from the Implementations related list.\n\n            On the Script Include form, update the script as required.\n\n            -   To modify an existing action, update the **name** parameter in the JSON object to match the one in the `DefaultLegalTicketActions` script.\n\n                For example, to change the Cancel action's default behavior in a specific practice area, open its extension point implementation keep the **name** parameter as `cancel` while modifying other parameters in the JSON object as required.\n\n            -   To add a new action, create a JSON object and change the name and other parameters as required.\n    4.  Click **Update**.\n\n2.  Configure Actions widgets on the standard ticket page for legal services.\n\n    1.  Navigate to **All** &gt; **Service Portal** &gt; **Widgets**.\n\n    2.  Search and select the **Legal Ticket Actions** widget.\n\n    3.  Review the existing script and Angular ng-template for reference and then add or modify them as required.\n\n    4.  Click **Update**.\n\n\n**Parent Topic:**[Configuring Legal Request Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/legal-request-management/legal-ops-administration.md)\n\n"}}