Cant hide a particular related list in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 10:28 PM - edited 03-17-2025 11:15 PM
I have to hide related lists to certain users. one of the related list is only visible on configure > related list, but not on form. Created a client script, it hid all the related lists on form , however it is not hiding the one that is not shown on form in Workspace.
This one is of relationship type and is added on selected realted lists but not visible on the form. However I can see the related list name (REL:xxxxxx) when printing logs in Client script. checked for any existing Client scripts , UI policies, Didn't find any.
g_form.hideRelatedLists(g_form.getRelatedListNames());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 10:55 PM
Tried this approach of looping through array and individually hiding and it didn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 11:03 PM
can you share the code snippet please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 11:06 PM - edited 03-17-2025 11:10 PM
I also updated the question if that helps
var listNames = g_form.getRelatedListNames();
for (var i = 0 ; i < listNames.length ; i++)
{
g_form.hideRelatedList(listNames[i]);
}