Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

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.

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

Updated on February 14, 2017

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>

Have a question? Get answers now.

Visit the Support 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.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us