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

Validation error message is removed from the page

SA-68922

Summary



Validation error message is removed from the page after the Finish assignment is performed.


Error Messages



Not Applicable


Steps to Reproduce

  1. In the screen flow, generate an error message.
  2. Click the Next button which has an OnClick 'FinishAssignment'. After clicking the button, the error message is cleared from the page and the flow navigates to the new page.


Root Cause



FinishAssignment submits all the documents and refreshes  the current tab. Hence, the page errors are cleared.


Resolution



Perform the following local-change:
  1. Create a Wrapper activity and add a Validation step on the first line. In the Validation step, add the below line of code:

    Lib(Pega-RULES:Default).hasMessages(myStepPage)

    If this is true, exit the activity.
     
  2. In Step 2 of the Wrapper activity create a FinishAssignment call.
  3. Configure a Refresh this Section on click of a button.
  4. Pass this Wrapper activity to the parameter.
  5. Check the 'Disable submit on refresh' option.

Published August 19, 2019 - Updated October 8, 2020

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