- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:45 AM
Hi , How we can hide Form context menu (hamburger icon ie located at beside of incident number) for end users in incident form ?
Thanks in advance
Solved! Go to Solution.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 08:05 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:47 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:49 AM
Thanks for prompt response
What about more options(three dots) in incident form, can we hide it for end users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:53 AM
https://www.servicenow.com/community/itsm-articles/hide-the-more-options-icon-on-form/ta-p/2300246
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 08:05 AM
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