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

Click on 'Cancel' triggers validation on mandatory fields screen

SA-5332

Summary



Click on OOTB 'Cancel' button, when processing a work object, is asking user to fill mandatory fields present on the page. If user cancels the assignment, it should not ask to fill mandatory fields.

Error Messages



None. Actual Result: Application is prompting to fill up the required mandatory fields.

Steps to Reproduce



1) Create a section with a mandatory text field input. 
2) Run the flow that presents the section at run time. When the work object is opened, OOTB 'submit' and 'cancel' buttons are shown. 
3) Click on 'Cancel' button. A pop-up comes up that asks user to fill mandatory fields on the page. 

Root Cause



As per the latest product design changes, the reported behaviour is working as expected.

Resolution



To stop the validations on click of 'Cancel' button, put the below code in UserWorkForm HTML fragment rule:

<script>
pega.u.d.bClientValidforReviewAction = false;
</script>


Save the rule and run the use case.
 

Published January 31, 2016 - 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