Field Should be visible if user is a member of Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 06:26 AM
If the user changes the Assignment group, and the user is a member of the newly selected group, the "Confidential" (field name) remains hidden until the Incident is saved because of an Read ACL which has a lot of condition.
Requirement
Confidential field should be displayed on change of the Assignment group and the user is a member of the newly selected group.
This can be achieved with OnChange Client script without altering/modifying the existing ACL. Please help me with the code, so I can complete this.
if user is a member of newly selected group //what code should I write in if Statement, I know we cannot use "ismemberof" in client script
{
g_form.setVisible('u_confidential', true);
}
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 06:34 AM
Hi
You mean logged in user or selected user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 06:36 AM
Hi
I mean logged in user.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 06:38 AM
Hi
You need to pass true/false from script incllude and then get it in the client script.
gs.getUser.isMemberOf('your_group name');
Please go through the below link .
Mark correct if it helps.
Regards,
Omkar Mone
www.dxsherpa.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 08:11 AM
Hi Himanshu,
you can refer the below link
Please mark answer as correct or helpful if solves your problem.
Thanks