Disable template bar

Pilar1
Tera Contributor

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

 

 

5 REPLIES 5

Abhishek Pande2
Giga Expert

Hi 

You can below community thread which answers your query.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564223

Steps to Reproduce

 

  1. Navigate to sys_properties.list.
  2. Add the glide.ui.show_template_bar.incident property and set it to false.
  3. Save the record.
  4. Navigate to Incident > Open.
  5. Open any record.
  6. 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

Abhishek Pandey
+91 7869881249 || 120591abhishek@gmail.com