- 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 10:06 AM
Well client scripts are the way to go here, most recommended and easy.
Rest up to you 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 10:24 AM
I would agree here 🙂
Cheers,
Joro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 10:35 AM
current.parent.sys_created_by == gs.getUserName()
in ACL solves problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 09:49 AM
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