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

Validation error upon Pega provided 'Delete Item' functionality

SA-19442

Summary



User has implemented Out-of-the-box (OOTB) Add and Delete buttons on Grid. On clicking on Add, it provides with few mandatory fields.
Now when user is trying to delete that without entering values, system throws a pop up.


Error Messages



Please correct flagged fields before submitting the form !!

Steps to Reproduce

  1. Configure a repeat grid with validations.
  2. Use pyPostGridUpdate activity for delete functionality.
  3. In this activity,use Page-Remove.


Root Cause



This is an expected behavior for the grid configured with inline mode, such as read write & click row to edit. Data is submitted as and when user tabs out of the row, now when there is mandatory field in that particular row, "Please correct flagged fields before submitting the form !" alert appears.

Resolution

To suppress this, implement the following local-change:

Add the below code in UserWorkForm:

<script>
window.customClientErrorHandler = function (){
return true;
}
</script>

Suggest Edit

Published February 9, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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