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 thebutton, 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!
By default, client-side validation is enabled for the work Review action.
In Pega 7.1.4, thebutton 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, theaction 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.
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:
pega.u.d.bClientValidforReviewAction = false;