- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2019 02:18 AM
Hi All,
In Business service, we have one related list name Subscribed by seeing in the below
We add User to Subscribed by but I don't know what is the use of this related list.
Anyone having knowledge on this please tell me briefly(functionality).
How to hide this related list for ITIL users?
Thanks
Raj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2019 04:17 AM
Hi,
The below code is working fine.
function onLoad() {
if(g_user.hasRoleExactly('service_owner')) {
g_form.hideRelatedList("cmdb_subscriber"); // hide related list
g_form.showRelatedList('cmdb_subscriber'); // show related list
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2019 03:45 AM
Try to set client script with similar code.
var sections = g_form.getSections();
if(g_user.hasRole('itil')){
sections[1].style.display = 'block';
}else{
sections[1].style.display = 'none';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2019 04:17 AM
Hi,
The below code is working fine.
function onLoad() {
if(g_user.hasRoleExactly('service_owner')) {
g_form.hideRelatedList("cmdb_subscriber"); // hide related list
g_form.showRelatedList('cmdb_subscriber'); // show related list
}
}