Support Article
Cancel button does not work correctly
SA-77454
Summary
The Cancel button does not work correctly. The work item opens in a new popup window instead of navigating back to previous state in the same window.
Error Messages
Not Applicable.
Steps to Reproduce
- Configure a case with a Cancel button.
- Add an Open Work By Handle action with a Move backward transition
- Launch the work item from the received email
- Click the Begin link at the initial step
- Click the Cancel button. It redirects back to the initial step in a popup window
Root Cause
A defect or configuration issue in the operating environment.
Resolution
Perform the following local-change to open the work object in the same window:- Write a function with the below code in UserWorkForm or in the script file that is loaded into the harness:
<script>
closeAssignmentInSameWindow = function() {
history.go(-1);
}
</script> - Add a Run Script action on the Cancel button on click event and call the closeAssignmentInSameWindow function.
Published August 19, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.