Requirement is to hide assignment groups from drop down if requestor is a member of the group

sravya03
Tera Contributor

Requirement is to hide assignment groups from drop down if requestor is a member of the group in catalog item.

Example i have a ABC variable which is referenced to sys_user_group table and will have active groups in drop down.

I have a variable XYZ where we need to give user name who need access, so when person name is given on ABC drop down only group which he is not member should be visible.

ABC is a variable in multirow and XYZ is single row variable

5 REPLIES 5

Anubhav24
Mega Sage
Mega Sage

Hi @sravya03 ,

You can use advance reference qualifier on your ABC field which is referencing to group table.

javascript:"sys_idNOTIN" + gs.getUser().getMyGroups()

Please mark helpful/correct if my response helped you.

 

hi @Anubhav24 

 

This is working but not for the XYZ variable  but for person who is creating ticket(requested for)

In some cases ticket requested person is different from access needed person (XYZ Field value).

Could you pls tell for XYZ variable

 

Hi Sravya,

In that case can you try to write a simple script include as below and call this script include in your reference qualifier as below:

javascript&colon;new GetNonGroups().getnonusergroups(current.variables.<XYZ field name>);

 

Please mark helpful/correct if my response helped you.

Hi @Anubhav24 

 

pls provide script include,  will try once.