How to remove Button "create new template" from Toggle bar Template Servicenow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 06:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 06:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 08:44 AM
Thanks a lot. I have resolved with an ACL that i set on write for "sn_template" table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 08:00 PM
Hi
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