Click on 'Cancel' triggers validation on mandatory fields screen
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.
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.
As per the latest product design changes, the reported behaviour is working as expected.
To stop the validations on click of 'Cancel' button, put the below code in UserWorkForm HTML fragment rule:
pega.u.d.bClientValidforReviewAction = false;
Save the rule and run the use case.
0% found this useful