Show and make a field mandatory based on group membership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2017 03:13 PM
Hey all,
I have a requirement to have a field on the incident form and have it mandatory only when the logged in user is part of a specific group. I have tried a client script, business rules and UI Policy's using both g_form and gs.isMemberOf but i cant get it working, Can anyone advise? I have used some the scripts on the community as well but again, i cant get it working.
Any hep is appreciated as always.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 04:31 PM
This worked for me as well. I modified it a bit where I referenced the Group (sys_user_group) table instead, and replaced g_form.setMandatory('<assignment group>') with g_form.setVisible('<assignment group>').