How to hide "FOLLOW" button for specific table?

rkreddy
Giga Expert

Hi Everyone,

How to hide "Follow" button for specific table?. I don't want it to hide globally, I want it for specific table.

Thank you,

Rakesh

12 REPLIES 12

Nice solution from Willem, also the only correct answer for this topic. The answers with using Client Script or UI Policy can work, though are not the correct way to go.

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

@rkreddy 

Please use this in onLoad Client Script of your table

Ensure Isolate Script field is set to false. This field is set to true for client script; but you can make it false from list view.

Note: This approach uses DOM which is not recommended

function onLoad() {
	//Type appropriate comment here, and begin script below

	document.getElementById('connectFollowWidgetAction').style.display = 'none';

}

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Willem
Giga Sage
Giga Sage

Hi there,

Did this solve your question? Or do we need to follow-up on this?

Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,

Willem

Yash Agrawal1
Tera Guru

Hello Reddy

Go to Properties and set the below-mentioed Property to "none" it will remove the buttons.I tried ,it is working on my instance.

find_real_file.png

 

Please Mark it helpful/correct if my answer helps in any way to resolve
your query.
Reach out to me if any more help required.

Regards

Yash.K.Agrawal

Hi Yash,

Thanks for the answer, but setting the property to none will hide the follow button globally.