---
sourceDocument: Yokohama Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/customer-service-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Set up a redirection widget

# Set up a redirection widget {#ariaid-title1}

Release version: Yokohama  
Updated April 15, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
You can set up a widget to reroute the user to the `csm_ticket` page once the record state changes from draft to new, indicating that the user has completed the intake process.

## Before you begin

Role required: admin

## Procedure

1. Navigate to AllService PortalWidgets.
2. Open the widget CSM Intake Redirect.
3. Add the following code the in the client controller section.  
   Note:  
   As a best practice, clone the CSM Intake Redirect widget to modify and replace it on the `csm_intake` page, or on your custom page.

       spUtil.recordWatch($scope, 'sn_customerservice_case', c.data.filter, function(response) { //replace sn_customerservice_case with your table.

               if (response.data.operation == "update" && response.data.record.state && response.data.record.state.value != "0") { //checking if the state is not draft

                   if (($window.location.href).indexOf('?id=csm_ticket&') == -1);
                   $window.location = "?id=csm_ticket&table=" + c.data.table + "&sys_id=" + c.data.sys_id;
               }
           });

4. Select Update.

*[\>]: and then


