Show and make a field mandatory based on group membership

scottjus82
Kilo Guru

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

5 REPLIES 5

Brandon R1
Tera Contributor

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>').