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

'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

  1. Log in to the application
  2. Select a case and open a form
  3. Configure a mandatory field in the form
  4. 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:
  1. 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();
    }


  2. Configure a button with ID 'Complete' in the main screen, with click action to finish assignment

Published May 21, 2018 - 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