- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:36 AM
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
User with role
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:47 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 10:03 AM
requirements