Table of Contents

Article

Troubleshooting: Cancel flow action displays error, “Please correct flagged fields”

Your application contains a flow with a flow action that has a Perform harness with client-side validation enabled and a section with a required field. When you or other users run the flow to perform the work and click the Cancel button, validation is invoked, you see the error window, and you cannot proceed with your work.

Error on screen

Please correct flagged fields before submitting the form!

Explanation

By default, client-side validation is enabled for the work Review action.

In Pega 7.1.4, the Cancel button is available as a standard flow action button. The Cancel button invokes the Review action.

If client-side validation is enabled on the harness of the work form, the Cancel action halts and you see the error window on the screen. You expect that canceling the work would suppress client-side validation because you are not saving your work changes.

Suggested approach

To disable client-side validation for the Review action in the User Work Form record:

  1. Save a copy of (Save As) RULE-HTML-FRAGMENT UserWorkForm in an open ruleset.
  2. Edit the copy of this record to add the following code:

    <script language="javascript">

       pega.u.d.bClientValidforReviewAction = false;

    </script>

Published March 20, 2015 — Updated February 14, 2017


100% found this useful

Related Content

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.