Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Configure a case with a Cancel button.
  2. Add an Open Work By Handle action with a Move backward transition
  3. Launch the work item from the received email
  4. Click the Begin link at the initial step
  5. 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:
 
  1. 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>
  2. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us