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

Required field validation displays on clicking Delete row button

SA-56730

Summary



Required field validation message displays on clicking the 'Delete row' button. However, the row is deleted on second click of the button.


Error Messages



Value cannot be blank


Steps to Reproduce

  1. Configure a section with a repeating grid which is sourced from a Page List property
  2. Set two fields to display in the repeating grid. One of the fields should be a required field
  3. Click the 'Add row' button
  4. Click the 'Delete row' button. Validation message displays


Root Cause

When a field is Required and the focus moves out without providing any value then validation occurs and this is an expected behavior.
On adding a row, the first element in the row has the focus which is a Required field, and even on clicking 'Delete row', validation should be completed. Deletion does not occur for the first time, because the button shifts below due to the addition of the error message in Document Object Model (DOM).



Resolution

Perform the following local-change:
  1. Add a column with the Delete row button
  2. Add the 'delete item' action on the button
  3. Include an inline style for the grid column as below:
    vertical-align: top;padding-top: 18px;


 

Suggest Edit

Published August 24, 2018 - Updated December 2, 2021

Did you find this content helpful? Yes No

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