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
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
button is available as a standard flow action button. The button invokes the Review action.If client-side validation is enabled on the harness of the work form, the
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:
- Save a copy of (Save As) RULE-HTML-FRAGMENT UserWorkForm in an open ruleset.
- Edit the copy of this record to add the following code:
<script language="javascript">
pega.u.d.bClientValidforReviewAction = false;
</script>