Wanted to remove cross button from MRVS

Rakesh-Patil
Tera Contributor

Hi there
Is there any way to remove cross button from MRVS without DOM Manipulation. We already tried but it doesn't have consistent behaviour.

8 REPLIES 8

Tanushree Maiti
Tera Patron

Hi @Rakesh-Patil 

 

To the best of my knowledge , without DOM manipulation, achieving this would not be feasible. 

 

 

Tarun Rekandar
Mega Guru

 

Hi @Rakesh-Patil ,

 

I'm not sure if this is the best approach, but we can try hiding the  remove cross button from MRVS without DOM Manipulation by adding custom CSS to the Service Portal theme.

 

However, we should verify that the CSS works as expected and doesn't affect other elements.

 

CSS: 

.sc-multi-row-variable-set .wrapper-xs .fa.fa-close {
  display: none !important;
}

TarunRekandar_0-1793161444721.png

 

Regards,
Tarun

yashkamde
Giga Sage

Hello @Rakesh-Patil ,

 

No, ServiceNow's g_form API or MRVS variable configurations do not expose a parameter to selectively disable or hide individual row action icons while keeping the row data visible or editable.

 

Also Refer below article on how you can disable the buttons in the MRVS.

Disable buttons in MultiRow Variable Set 

 

If my response helped mark as helpful and accept the solution.

Sandesh Powar
Kilo Sage

Hi @Rakesh-Patil ,

You can hide the MRVS buttons without DOM manipulation by using CSS in a Rich Text Label variable.

Please refer to this ServiceNow Community article for the implementation steps and CSS selectors:

Reference: ServiceNow Community – Hide Buttons in MRVS Without DOM Manipulation

The article explains how to hide specific buttons, including Add, Edit Row, Remove Row, and Remove All, using CSS selectors.

If you find this solution helpful, Mark this response as Helpful and Please Accept the solution.

Regards,
Sandesh Powar
ServiceNow Rising Star