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

Well client scripts are the way to go here, most recommended and easy. 

Rest up to you 🙂

-Anurag

Community Alums
Not applicable

I would agree here 🙂

 

Cheers,

Joro

current.parent.sys_created_by == gs.getUserName()

 in ACL solves problem

Community Alums
Not applicable

Hi Miro,

you can do it and in a bit different way:

right click on the list column, then go to list control and just add role - highlighted in 2nd screenshot (screenshots attached)

find_real_file.png

 

 

 

find_real_file.png

Hey Joro,

This will be the filter roles, people with the specified role can add filter to the related list data. This will not hide the data of related list. Right?

-Anurag

-Anurag