- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 05:30 AM
Hi All,
Is there any method or way through which I can get the sys_id or name of the related list in the 'condition' of UI action and hide it then on the same related list?
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 10:23 AM
Hi Jaydee,
We can achieve this through RP and condition evaluation on script include. Please find below steps
Here I tried to show it only for "incident.parent_incident" related list.
OutCome:
Appearing on Child Incident
Hidden on other related list for same table Incident. Let me know if this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 06:18 AM
Hi,
If you don't mind, can you clarify your question?
Are you saying you have a related list, with a ui action on it and you want to hide the button on that related list if the related list sys_id (or name) is 'x'?
Or are you saying you have a UI action and want to know if you can get the sys_id (or name) of a related list and use the UI action to then hide that related list?
Related post by same user...: https://community.servicenow.com/community?id=community_question&sys_id=e68f3903db01e810f21f5583ca96...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 10:23 AM
Hi Jaydee,
We can achieve this through RP and condition evaluation on script include. Please find below steps
Here I tried to show it only for "incident.parent_incident" related list.
OutCome:
Appearing on Child Incident
Hidden on other related list for same table Incident. Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 09:48 PM
I got it implemented.Thanks a lot Bala Krishna 🙂