How to hide OOTB error section in a modal dialog

we are doing page-set-message in our modal dialog box on click of modal submit button. we are showing our custom error section for the errors. but to stop modal box from submission we have kept the page-set-message. now are getting two errors on the screens - one from page-set-message and one from our our error property.

Just curious to now how Pega is dispalying the error list.

currently I checked Pega is using section - pzModalAction, can you guide how to extened if I want to hide the OOTB error message in one modal box.

Hi, @Saurabhk1895 I tried manipulating CSS.

In CSS, you can try just doing display: none. for the applicable element, preferably based on some unique dom element. I tried setting

[param_name=“EXPANDEDSubSectionpzModalTemplateB”] table. error-table {
display: none ! important;

it worked for me can you check if you can use something similar?

I know this solution is not recommended. Alternatively, can you can try settings present on the harness level, if it suits your requirement.