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

sriram35
Kilo Guru

Hi Aarushi,

 

Please refer below links

 

https://community.servicenow.com/community?id=community_question&sys_id=17c89fdcdb49c4586064eeb5ca96...

 

https://community.servicenow.com/community?id=community_question&sys_id=478d90bb1bf48c10a59033f2cd4b...

 

Hope this helps!

If you have any more questions, please let me know.

If I have answered your question, please mark my response as correct and helpful.

Thanks,

Sriram

@Aarushi you can only set 1 answer as Correct. Please mark my answer with the CSS as correct. All others can be marked as Helpful.

 

Thanks for your effort!

Harsh Vardhan
Giga Patron

Adding one blog here, kindly have a look. 

 

Tips and Tricks : MRVS (Multi Row variable set) : Part 2

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.