Multi Row Variable Set - hide 'Remove All' and 'Delete' functionality on service portal

Dashing
Tera Contributor

Hello,

i saw multiple question regarding multi row disable Remove all button and as well as delete button but i am not getting any solution regarding in this issue.

could not make it as a ready only variable because we want the edit button only in multi row variable.

i can see the widget is read only so we cannot hide it through css.

Is there any solution so that simply just remove Remove all,delete button from multi variable set because we need to utilize only edit button.

any solution would be welcome as there is no simple solution available(please notice i am not looking to clone widget)

Thanks in advance

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Oke if I understand it correctly, you do want to keep the edit button, nothing more? Because this is Service Portal... you could try to hide the elements through CSS. For example page specific CSS or widget instance options css.

For example see below. Where I've hidden the delete icon:

find_real_file.png

Did this by adding to the Page specific CSS:

.wrapper-xs.fa.fa-close {
  display:none;
}

To understand a bit more how I did this, this article which I wrote a while ago might be helpful. Same principle. Inspect which elements you are after, and add page specific CSS:
Removing Service Portal Catalog Item Help tag icons

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

7 REPLIES 7

sachin_namjoshi
Kilo Patron
Kilo Patron

you don't have to clone widget.

you can write catalog client script for your catalog item which contains this multi -row variable set.

 

https://community.servicenow.com/community?id=community_article&sys_id=a3a7a578dbbc0410190dfb2439961...

 

Regards,

Sachin

 

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Oke if I understand it correctly, you do want to keep the edit button, nothing more? Because this is Service Portal... you could try to hide the elements through CSS. For example page specific CSS or widget instance options css.

For example see below. Where I've hidden the delete icon:

find_real_file.png

Did this by adding to the Page specific CSS:

.wrapper-xs.fa.fa-close {
  display:none;
}

To understand a bit more how I did this, this article which I wrote a while ago might be helpful. Same principle. Inspect which elements you are after, and add page specific CSS:
Removing Service Portal Catalog Item Help tag icons

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hey Hi Mark, i was actually able to do disable these buttons but its impacting other record producers. So is there anything i can do to restrict it to a particular RITM?

 

Hi Mark,

Is there a way to hide this X icon with CSS, or any way in Service Portal, for one specific Catalog Item rather than all items?