Cant hide a particular related list in workspace

Kumar38
Kilo Sage

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());

 

 

22 REPLIES 22

Kumar38
Kilo Sage

Tried this approach of looping through array and individually hiding and it didn't work

can you share the code snippet please?

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]);

}