How to hide "FOLLOW" button for specific table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2020 09:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2020 03:42 AM
Please check my comment above
that should work fine
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2020 03:45 AM
Hello Reddy,
create an UI policy on the task table(or if any specific table you want to remove it on).
Please find the script below.
function onCondition() {
var thePostButton = document.getElementsByClassName('btn btn-default connect-follow');
for (var i = 0; i < thePostButton.length; i++)
thePostButton[i].style.color = 'transparent';
thePostButton[i].style.background = 'transparent';
thePostButton[i].style.border = 'none';
thePostButton[i].style.visibility = 'hidden';
}
}
Please keep posted if want more help,I tried this solution it is working.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2020 03:54 AM
Hi,
Under system definition choose Dictionary
for the attribute of the table for which you do not want the follow button enter: live_feed=false
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha