- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-18-2023 10:38 PM
I want to hide 'View Locations' button from a specific viewbut it should be visible in Default view. Can anyone help me to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-18-2023 10:45 PM
you can hide it based on UI Action Visibility related list
You can specify the views in which it should be visible by creating a record into that related list table
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
ā10-18-2023 10:45 PM
you can hide it based on UI Action Visibility related list
You can specify the views in which it should be visible by creating a record into that related list table
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
ā10-18-2023 10:48 PM
Open the "View Locations" in UI actions and try below in condition field:
var map = gs.action.getGlideURI().getMap();map.get('sysparm_view')=='default';
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-18-2023 11:03 PM
Hello @Mehar Naaz ,
Create a new record in the "sys_ui_action_view" table.
UI Action Visibility = add your UI Action name
View = Select view for which you don't want to show that UI Action
Visibility = Exclude
If my response helped please mark it correct and close the thread so that it benefits future readers.
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-18-2023 11:06 PM
This is same as what I shared as 1st response i.e. to use UI Action Visibility.
Any reason to share the same details again? It might confuse the person.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader