Hide Follow button on Change Request Form

lonesoac01
Giga Guru

Hello all,

 

    I am trying to track down "Where this Follow/Following button is coming from".  I found the documentation of: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0692505 we have two with the same name in our instance.  BOTH do not have "Form Button" as True, in addition, I also deactivated them and the button still showed up!  How else can a Form Button be added to a form header without being a UI Action?  Here are some screenshots of what I am looking at.

 

Screenshot 2023-10-02 112401.png

-------------------------------

The below is the HTML source code.  I thought this MIGHT be helpful in figuring out where this button is coming from.

source_html.png

1 ACCEPTED SOLUTION

Yeah, I'm pretty sure you're not going to be able to alter the Live Feed functionality.  We don't even have access to the Script Includes called by these UI Actions to see what they're doing.  As a workaround, 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();
	    }
	});
}

 

View solution in original post

7 REPLIES 7

Yeah, I'm pretty sure you're not going to be able to alter the Live Feed functionality.  We don't even have access to the Script Includes called by these UI Actions to see what they're doing.  As a workaround, 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();
	    }
	});
}

 

Dude, I cannot thank you enough!  That is what I was needing and wanting!

You are welcome!

 

 

Connect with me https://www.linkedin.com/in/brad-bowman-321b1567/