How to make visible related list for User with role

miro2
Mega Sage

Hi,

Can anyone provide me solution how to make a visible Task Related List for User who has special role using ACL on read?

User with role should also see related list with Tasks

admin view

find_real_file.png

 

User with role 

find_real_file.png

 

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Based on the role you can check and show/hide related list via client script

if(g_user.hasRole('<yoru role>'))
{
g_form.showRelatedList('related_list_table_name');
}
else
{
g_form.hideRelatedList('related_list_table_name');
}

 Read More here: Hiding Related Lists and Embedded Lists

-Anurag

-Anurag

View solution in original post

14 REPLIES 14

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Based on the role you can check and show/hide related list via client script

if(g_user.hasRole('<yoru role>'))
{
g_form.showRelatedList('related_list_table_name');
}
else
{
g_form.hideRelatedList('related_list_table_name');
}

 Read More here: Hiding Related Lists and Embedded Lists

-Anurag

-Anurag

@Anurag Tripathi, is there any way to handle it instead of using client script?

There is no other way to do it. 

Using the ACL you can control the visibility of data, but it might have issues with the same user having issues with seeing records on any other table/related list.

Why do you not want to use client scripts?

-Anurag

requirements