How to disable "Remove all" button on the Multi Row Variable set in service portal ?

Aarushi2
Mega Contributor

The requirement is to hide or disable the "Remove All" button on the Multi-row variable set in the Service portal as we need to utilize only the edit button.

Any solution would be welcome.

Thanks in advance

find_real_file.png

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Can you go to:

yourinstance.service-now.com/nav_to.do?uri=sp_instance.do?sys_id=e2656985ff630200ba13ffffffffff68

 

That will take you to the "SC Catalog Item"-widget instance used in the portal

If that is the Widget Instance you are using. If not, search for that Widget Instance.

Add this CSS:

//Hide attachment button CSS
  .r-2x > div:nth-child(1) > button:nth-child(2) {
         display: none;
  }

 

Like this:

find_real_file.png

 

The end result:

find_real_file.png

 

And with entries still hidden:

find_real_file.png

 

No customization needed. Just plain old CSS.

 

 

View solution in original post

6 REPLIES 6

@Aarushi did this solve your requirement? If so, can you kindly mark answer as correct? That will close the thread and help others find the answer as well.

asifnoor
Kilo Patron

Hello Aarushi,

There is no direct way to hide Remove all button. You might have to play around with DOM and hide it through CSS.