- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:05 PM
Hi,
I want to hide the 'Retire' button displayed on the form for members belonging to a group that has the 'knowledge' role. The 'Retire' button is OOTB so I don't want to modify it too much considering future upgrades.
How should I achieve this?
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:39 PM
share the onload client script script and config screenshot
Ensure Isolate Script = False for your client script so that DOM manipulation works
I agree with what @Mark Manders said, you can update the OOTB ui action as well and review the changes after upgrade.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:10 PM
without updating the OOTB UI action condition you can achieve your requirement.
Another way below
You can use onLoad client script and check role etc and then use DOM manipulation to hide, but that's not recommended approach
check this link on how to do this
How to Hide UI Action using client script.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:28 PM
Thank you,
I was looking at this article, but the function is not working.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:39 PM
share the onload client script script and config screenshot
Ensure Isolate Script = False for your client script so that DOM manipulation works
I agree with what @Mark Manders said, you can update the OOTB ui action as well and review the changes after upgrade.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 11:46 PM
Thank you.
That worked!
Since it's not preferable to change OOTB, I will consider this method and try to communicate with the users.
Regards,