Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Follow Button Disabling

aparnaravi
Tera Contributor

I want to remove the Follow Button. How can i do that?

6 REPLIES 6

Prathamesh26
Tera Expert

Hello @aparnaravi,

 

Please check below KB article.

Link - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0692505

OR

If you only want to hide the button on one or some forms, you can add an onLoad Client Script like this:

function onLoad() {
	var items = $$('BUTTON').each(function(item){
	    if(item.innerHTML.indexOf('Follow') > -1){
	    	item.hide();
	    }
	});
}

Note - Please test it before on non-prod instance.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Prathamesh

@Prathamesh26 

Thanks for sharing the code.

If you are using someone else's code, please remember to give them credit. It's a nice way to acknowledge their hard work and contributions.

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

Sure @Ankur Bawiskar 

Regards,

Prathamesh

Ankur Bawiskar
Tera Patron
Tera Patron

@aparnaravi 

this KB has solution

How to remove the Follow button from a form header. 

simply add live_feed=false in dictionary attributes and follow button is gone

 

AnkurBawiskar_1-1744031950324.png

 

AnkurBawiskar_0-1744031924297.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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