Hide UI button from backend but not portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 12:06 AM
I have a UI button on a form which I want to hide in the backend but not in the portal. How to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 12:37 AM
is that UI action client side or server side?
if it's client side then it won't show
check this link
How to hide UI action from portal
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-02-2025 12:42 AM - edited ‎05-02-2025 12:57 AM
This UI Action is Server Side. And by the way I want to hide it from the backend and not the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 12:47 AM
then add this in UI action condition along with other conditions
give the name of portal name in that so that it's see only in portal and not in native
gs.action.getGlideURI().toString().indexOf('/sp') != -1
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-02-2025 01:04 AM
When I add this condition to my UI Action, it hides it from both backend and the portal. Should I change the UI Action to Client?