- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 10:35 PM
Hi All ,
I have requirement that the edit button in related list ' Approver' in change form should be visible to group 'Wrap group' .
Please provide the steps to do it .
is it possible without script include.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 10:53 PM
Hi @ServiceNow10sun ,
right click on any field on the related list - > configure -> list control
in that write this script "!gs.getUser().isMemberOf('Wrap Group');" in the omit edit button script
Regards,
Teja
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 10:53 PM
Hi @ServiceNow10sun ,
right click on any field on the related list - > configure -> list control
in that write this script "!gs.getUser().isMemberOf('Wrap Group');" in the omit edit button script
Regards,
Teja
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2023 12:43 AM
Thank you so much it worked . Just a question if i have multiple groups instead of one group what will be best way to achieve that sysproperty or similar way we have to write multiple lines for each group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2023 12:48 AM
If you have other groups use this
!gs.getUser().isMemberOf('Wrap Group') && !gs.getUser().isMemberOf('OtherGroup')
or if there are multiple number of groups, you can store them in a system property
and check if the user is part of any of those groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 02:56 PM - edited 08-07-2024 02:57 PM
Hi @Teja11 ,
I have requirement like if group is "PFA", , only user is john is allowed to add members to "PFA" group by using edit button on sys_user_group table under related list , no one is allowed to edit member of that group.I have added screenshot , please refer for more details.