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

Delete from grid repeat leaves added item when submitted



In a grid repeat, items that are added then deleted immediately, reappears in the grid after it is submitted.

Error Messages

Not applicable.

Steps to Reproduce

1) Bring up the grid.

2) Add an item.

3) Add a second item.

4) Delete the second item.

5) Submit the grid. The deleted item reappears.


Root Cause

A defect in Pegasystems’ code or rules: The delete was not removing the item from the UI data structure, so when the grid was submitted, the item is re-added to the clipboard.


Perform the following local-change: 

Add the following code to the UserWorkForm HTML fragment:


pega.ui.Doc.prototype.deleteModalHeader = function() {
    var hdiv = document.getElementById("modaldialog_hd");
        if (hdiv.parentNode &&  (hdiv.parentNode == pega.u.d.modalDialog.innerElement))

Published August 31, 2015 - 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