Disable template bar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 04:08 AM
Hello
I need hide the template bar, i find the follow:
"About this task
You can toggle the template bar, which hides or shows it for all forms. The template bar is shown by default."
but How do i do it?
otherwise
it´s possible hide only on the changes?
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2021 01:16 AM
Hi
You can below community thread which answers your query.
- Toggle template bar appearing on Standard Change Request form - IT Service Management - Question - S...
-
Create a on-load client script with Isolate script is set to false.
With additional condition as only run this when RFC type is standard.
function onLoad() { document.getElementById('template-toggle-button').parentElement.hide(); }
- Check the Knowledge article - KB0564223.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564223
Steps to Reproduce
- Navigate to sys_properties.list.
- Add the glide.ui.show_template_bar.incident property and set it to false.
- Save the record.
- Navigate to Incident > Open.
- Open any record.
- In the Form Header, click on the More Options menu.
Note that the Toggle Template Bar option is still displayed.
Workaround
Create a global UI Script containing the following statement:
addLateLoadEvent(function(){$j('#template-toggle-button').parent().hide();});
The exact implementation of this can vary.
- If you want this to be applied throughout all the forms on the Instance, you may need to add this within a setTimeout call
- If you want this to effect specific forms, encapsulate the code within a function and call it from a client script for the respective table (for example, onLoad Client Script on Incident table)
Regards
Abhishek Pandey
+91 7869881249 || 120591abhishek@gmail.com