Unable to Hide the UI Action List Context Menu from specific table using the conditions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 08:00 AM
Hi SNOW Champs, Need your help. I have created a List Context Menu UI Action which should only be visible on Change_Request related approvals while the other similar List Context UI Action which is OOB by name of "Reject" should be visible on approvals related to other tables excluding Change. I have mentioned the conditions in both the List Context Menu UI Actions but seems the conditions does not work as they fail to make UI Action invisible from other tables based on my requirement. I could see both the UI Action list context menus in all classes including Knowledge Base, RITM's, Change etc. Ideally as per my understanding UI Action condition is used to make it Visible/Invisible but this does not seem to be the case with List Context Menus.
Please see attached screenshots of both the UI Actions being visible in List Context Menu irrespective of the mentioned condition. As per Business Requirement, only "Reject Change Ticket" List Context Menu UI Action should show in approvals associated with Change Request and the other one i.e. "Reject" should show in approvals associated with rest of classes (excluding Change).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 10:03 PM
Hi Sarthak,
Current doesn't work in List context menu button.
Alternatively, you can use parent.sys_class_name ==change_request' or modify according to your conditions. Let me know if you have any questions.
Cheers,
Hardit Singh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 10:23 PM
Unfortunately current object is not available in list context menu.
As per servicenow docs:
- The current object is not available for conditions on a list context menu (the List context menu check box is selected). Any use of current on these actions is ignored.
There are few OOB ui actions with current as conditions but it wont work in list context menu.
As of now there is no workarround for this.
if you need this in related list only then you can add conditions using the parent object
related discusion for the same issue:
https://community.servicenow.com/community?id=community_question&sys_id=67f8e838db9ca7c4e0e80b55ca96194c
https://community.servicenow.com/community?id=community_question&sys_id=66b11f6ddbdcdbc01dcaf3231f96198f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2021 12:30 AM
Hi Satheesh,
Will you please have a look on this question. Please suggest any solution.