How to remove Button "create new template" from Toggle bar Template Servicenow?

Francesco12
Mega Contributor

I need help, i need to remove or Hide the button "create new template" from Toggle Bar Template. 

It is possible? i don't need to hid the toggle bar but only the button create new 

thanks all

find_real_file.png

3 REPLIES 3

Community Alums
Not applicable

Hi,

We can Hide the toggle bar at a whole but not the "+" button itself .

Create an Onload client script to hide the Toggle bar itself. Make sure Isolate script is set to false.

Use this code:

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

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

 

Thanks a lot. I have resolved with an ACL that i set on write for "sn_template" table

Community Alums
Not applicable

Hi @Francesco ,

Great to see you resolved it with ACL !! 

But if you want later in any requirement, you can use what i shared.

Please close this thread by marking the answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep