how to hide New button on related list for particular roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:20 AM
i need to hide new button on related list for manager and employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 11:08 AM
Which related list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 11:35 AM
Hello,
If it is a related list please do the below:-
Right click on the column in the related list configure-> list control
If you want to hide it for everyone then mark omit new button checkbox as true:-
If it is based on role in the Omit new condition field write the below code:-
answer=true;
if(gs.getUser().hasRole('rolename'))
{
answer=false;
}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 10:06 PM
It is working in native, but not working in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 10:17 PM
Hello
List control does not work in workspace. On workspace there is no way to control the related list button through role. Either you can completely disable it or show it but cannot do it based on condition in workspace.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 10:21 PM
Thank you, and how to restrict it for multiple role users.