Hi , How we can hide Form context menu (hamburger icon) for end users in incident form ?

kurella swamy
Tera Contributor

Hi , How we can hide Form context menu (hamburger icon ie located at beside of incident number) for end users in incident form ?

kurellaswamy_0-1730123028570.png

 

 

Thanks in advance

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @kurella swamy,

 

This can be achieved with 2 steps as outlined below, however, I would like to ask what you're trying to achieve by removing this? Is this for all users or specific users? Is this a specific business requirement as it is a little unusual to hide this.

I would consider only hiding this in certain circumstances and try to limit this if possible.

 

However, to answer your question directly:

- Create below onLoad client script

- Make sure the 'isolate script' checkbox and column for this script is set to false (Default is set to true to prevent DOM manipulation)

 

function onLoad() {
    // This hides the menu hamburger button
	document.getElementsByClassName("btn btn-icon icon-menu navbar-btn additional-actions-context-menu-button")[0].style.display="none"; 

}

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

View solution in original post

5 REPLIES 5

Hi @Robbie  Yes, It is for one of our business requirement. We want hide hamburger icon for end users and rest of all users should able to see.

The above script will work for end user perspective?

Any way thanks for quick help.