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

@rkreddy 

Please check my comment above

that should work fine

Regards
Ankur

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

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

Megha Padale
Giga Guru

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

 

 

 

find_real_file.png

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha