Support Article
'Value Can Not Be Blank' does not display for mandatory fields
SA-54622
Summary
On submitting a form, the 'Value Can Not Be Blank' message does not display for the mandatory fields.
Error Messages
Not Applicable.
Steps to Reproduce
- Log in to the application
- Select a case and open a form
- Configure a mandatory field in the form
- Submit the form without entering any value for the mandatory field
Root Cause
Issue is with the custom script configured to finish the assignment on confirming a warning on the modal dialog. The modal dialog is launched OnClick of Submit in the main screen to confirm. In the custom script, an internal refresh action is triggered, which removes the errors from the screen.
Resolution
Perform the following local-change:
- On click of the OK button on the modal dialog, run the below script to complete the assignment:
function Complete(){
doModalAction(pega.u.d.submitModalDlgParam,event);
pega.util.Dom.getElementsByClassName("Complete", "button")[0].click();
} - Configure a button with ID 'Complete' in the main screen, with click action to finish assignment
Published May 21, 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.