Support Article
Error message displays despite checking check box & saving form
SA-62208
Summary
The user has configured error message to display when a check box is not selected and Submit is clicked. However, even when the check box is selected and the form is saved, the error message displays.
Error Messages
Not Applicable.
Steps to Reproduce
- Create a case and navigate to the specific UI which has the error message configuration
- Unselect and then select the check box and save the case
- Click Submit. Error message still displays on top level page
Root Cause
In the UserWorkForm, the pega.u.d.KeepPageMessages flag is set as true. Hence the error message does not clear.
Resolution
Perform the following local-change:Add the below script in the UserWorkForm and use this function to pass the value as false on click of the Save button:
<script>
function resetkeepmessage(pagemessage){
pega.u.d.KeepPageMessages = pagemessage
}
</script>
Published August 24, 2018 - 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.