omit edit button on group table level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 04:59 AM
Hi All,
we want that only the Group owner can see and use the "edit" button on the related list "Group Members". Therefore we edited the List control and added following omit edit button script.
But some reasons it's not working, can anyone please help us here.
Advance thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:21 AM
Hi @LaraReddy
this is what I use in my instance and it works as expected
var currentUser = gs.getUserID();
var groupManager = current.manager.toString();
var isAdmin = gs.hasRole('admin');
if (currentUser !== groupManager && !isAdmin) {
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:27 AM
Hi Gusthav,
Thanks for the response.
We tried your suggestion and but still the group managers are not seeing the edit button. [Refer below images]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:05 AM
The sys_user_grmember table as no 'manager'. You would need to dotwalk to the group.manager.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:49 AM
Hi Mark,
Tried your suggestion but still no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 07:09 AM
Hi @Ankur Bawiskar ,
Could you pls help us here.
Thanks.