- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:36 PM
Hi All,
In my personal developer instance, I am trying to make the Related List - Incident Communication Plan (in the Incident form) visible only for users with the Major_Incident_manager role. Can you please advise what's the best way to achieve this?
Currently if I impersonate as any ITIL user the Related List is visible. Please advise.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:43 PM
You can write an onLoad client script
if(g_user.hasRole('Major_Incident_manager'))
{
g_form.showRelatedList('related_list_name');
}
else
{
g_form.hideRelatedList('related_list_name');
}
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:43 PM
You can write an onLoad client script
if(g_user.hasRole('Major_Incident_manager'))
{
g_form.showRelatedList('related_list_name');
}
else
{
g_form.hideRelatedList('related_list_name');
}
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:49 PM
Thanks Sanjiv.
When I check the Incident Form for the Related List name, it is Incident Communication Plan->Source Incident.
However, when I search for this name in the Related Lists (Under System Definition) I cannot find it. What am I missing please? Check the screenshots.