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

Dr Atul G- LNG
Tera Patron
Tera Patron

That is additional actions, as per my knowledge we cant hide it.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

Thanks for prompt response
What about more options(three dots) in incident form, can we hide it for end users?

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kurella swamy 

https://www.servicenow.com/community/itsm-articles/hide-the-more-options-icon-on-form/ta-p/2300246

 

https://www.servicenow.com/community/developer-forum/how-to-hide-more-options-and-additional-actions...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

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