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.
Procedure
-
Navigate to .
-
Open the widget CSM Intake Redirect.
-
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;
}
});
-
Select Update.