- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 06:52 PM
How can we refer to related lists in a form to restrict their access to specific group of people?
Thanks,
Divya
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 10:43 PM
Divya,
You can restrict the records in the related list by creating a read ACL on the related list table.
For example, I can create a read ACL on task_sla table and restrict itil users from viewing that records
For admin:
For itil:
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 07:15 PM
You can write an onLoad client script and check for the roles and use this method to hide the related list. You will get the related list name by going on to the list and configure -> list control as shown below
g_form.hideRelatedList('related list name');
For example, if I want to hide Task SLA related list on Incident, I would write
g_form.hideRelatedList('task_sla.task');
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 08:38 PM
That's right but the entire form is being hidden with this script...
The condition given by me initially was:
Type: UI Page
Operation: Read
Name: Incident
Role: ITIL //for testing purpose
Later now I changed that to
Type: Record
Operation: Read
Name: Incident.None
Role: ITIL
Thanks,
Divya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 08:54 PM
You wanted to hide the related list right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 08:56 PM
Yes, just the related list...