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
07-04-2018 05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 05:41 AM
Hi mppr,
The Template Bar is hidden by setting the glide.ui.show_template_bar.<table_name> property to false. However, even with this the Toggle Template Bar option is still present on the menu. To also hide it, try this:
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,
Paul
Regards
Paul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2018 01:38 AM
Hi,
Thank you Paul!
I don´t know how to implement it on changes.
"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)"
Something like this?
I can see the templates on change task, so i have created a client scrit on Change task table.. but how can i applied this to a specific role?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2018 03:10 AM
Hi,
I have test an Client Script,
function onLoad() {
if (g_user.hasRole('ZZZ'))
{ addLateLoadEvent(function(){$j('#template-toggle-button').parent().hide();});}
}
but it is working bad..