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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.