How do I disable the 'Toggle Template Bar' from the 'more options' menu.

shawnclune
ServiceNow Employee
ServiceNow Employee
I need help - if it's even possible - to disable (hide / remove) the menu option for "Toggle Template Bar" when a user is viewing a record in an application extended from the Task table.
 
I read KB0564223 (Cannot hide Toggle Template Bar option from the More Options men) and I'm able to disable the functionality of the template bar appearing - in this case, on the INC table - but the menu option still appears (see below).
 
My concern is it's going to confuse users thinking they can still toggle the template bar because they see the option in the menu - when in fact - it's truly been disabled for the Incident table.
 
Any ideas?
 
find_real_file.png
 
1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Create an Onload client script. Make sure Isolate script is set to false.

 

Use this code:

function onLoad() {
   document.getElementById('template-toggle-button').parentElement.hide();
}

 

The result:

Before

find_real_file.png

 

After

find_real_file.png

View solution in original post

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Out-of-the-box, there's no configuration option to disable this. It's actually like you already mentioned. You can disable the template bar appearing, though not this menu.

Feels like a half solution... though out-of-the-box no configuration option for this.

What you could do, create a Global UI Script. Something like:

find_real_file.png

This would remove the option from the menu. Though this would also impact other tables. Maybe someone knows how to make this more specific.

If my answer helped you in any way, please then mark it as helpful.

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

Willem
Giga Sage
Giga Sage

Create an Onload client script. Make sure Isolate script is set to false.

 

Use this code:

function onLoad() {
   document.getElementById('template-toggle-button').parentElement.hide();
}

 

The result:

Before

find_real_file.png

 

After

find_real_file.png

shawnclune
ServiceNow Employee
ServiceNow Employee

Willem,

Works like a champ!  Thank you sir.

     - Shawn

You are very welcome. Glad to help! 🙂