Can't hide related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2019 06:57 AM
Hello everyone,
I'm try to hide all related lists on my form but it's doesn't work for me.
I tried g_form.hideRelatedListS(); all the related lists are disappeared except one.
I tried to hide the specific list but it's still there. (g_form.hideRelatedList('REL:7bb4a2e0134e6e001b8f3598d144b03b');)
Thank you,
Tzach.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 01:10 AM
case menu -> configure -> related lists -> inside the "selected" list -> the list name is "cases for subject person", it's a OOTB related list in HR module.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2019 08:24 AM
Hi there,
Consider using a No code solution for this. There's no need to code this. Also like Abhishek mentioned, try to avoid coding sys_ids.
See a No code solution below. Just a UI Policy with a UI Policy Related List Action:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2019 11:23 PM
Hey, thank you for your reply,
I don't have this tab, maybe the reason is that my instance is on Kingston version?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 12:31 AM
Ah Kingston. Indeed, this was introduced in London. I mentioned this because your thread has "Version: London".
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2019 02:37 PM
HI,
Related List APIs:
Show Related List
|
g_form.showRelatedList(<relatedlisttablename>);
|
Hide Related List
|
g_form.hideRelatedList(<relatedlisttablename>);
|
Show All Related Lists
|
g_form.showRelatedLists();
|
Hide All Related Lists
|
g_form.hideRelatedLists();
|
DO MARK IT AS HELPFUL IF THIS RESOLVES YOUR QUERY 🙂
REGARDS,
AJAY