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

Screen freezes on click of a button in PRPC 7.4

SA-95545

Summary



After closing a Screenflow case type, unable to create a new case.


Error Messages



Uncaught TypeError: Cannot set property 'value' of undefined




Steps to Reproduce

  1. Add a button that is configured to Add New Work.
  2. Add a screen flow for the assignment with a Start shape and which has Allow errors selected.


Root Cause



A defect in Pegasystems’ code or rules.
When the tabbedscreenflow is launched, the tabscreenflow Validation rules override the default Validation functions. Thus, a conflict is created if the screenflow is not completed; and the user reverts to the other Harness and performs a form Submit operation.


Resolution



Perform the following local-change:
  1. Create a script in the UserWorkForm as below.

    <script>
      
      function reAssigndisplayvalidation(){
        console.log("Reassiging validations");
        console.log(temp_validation_displayErrors);
        validation_displayErrors = temp_validation_displayErrors;
      }
      
    </script>

     
  2. Add the below function in the Harness script which is a non-screenflow harness.

    if(typeof validation_displayErrors!= "undefined" && validation_displayErrors.name !=="addErrorsToClipboard"){
      console.log("Loading harness scripts");
      console.log(validation_displayErrors);
      temp_validation_displayErrors = validation_displayErrors;
    }

     
  3. On Click of a button, create a new work item.
  4. In the action set, configure a Run script and invoke the function defined in Step1.

Published January 6, 2020 - 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