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

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

All you need is to look for something as below

find_real_file.png

 

Click on Toggle Template bar & see the results at the bottom of the screen.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Paul Curwen
Giga Sage

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 

 

 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Pilar1
Tera Contributor

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?

 

 

 

 

 

Pilar1
Tera Contributor

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..