Catalog UI Policy script with multiple conditions

Jeremy F_
Giga Expert

Greetings All,

I am brand new to scripting, so any assistance I can get here is greatly appreciated. I am working on a complex catalog item created by the previous administrator. I have been able to solve for most of the gaps needing addressed, but I am stuck on a few items that look like scripting will be required to solve. From this post, I'm seeking scripting help to make a specific set of variables available based on the following conditions:

If field "access_requested_for" is not empty, then search for user department
If user department is Information Technology, then visible = true

If (checkbox) Team Member Not Found = true and "team_member_department" field is "Information Technology", then visible = true

9 REPLIES 9

Adi26
Tera Expert

From what I understand all you are looking for is to be make few fields visible based on specific conditions. You should be able to do them with UI policy and not needing scripting. Could you please clearly layout your conditions, so that me or others can help with UI policies.

Jeremy F_
Giga Expert

I am unable to select the required conditions from the UI Policy condition builder. The first set of conditions is based on a reference field named access_requested_for. It references the sys_user table. IF access_requested_for is not empty AND user department is Information Technology, then visible is true.

OR

The second set of conditions is based on a check box named team_member_not_found and a reference field named team_member_department. IF team_member_not_found is true AND team_member_department is Information Technology, then visible is true.

I am unable to set these conditions using the UI Policy condition builder only.

Hey Jeremy F, You are able to access reference values by looking for the option (Show related Fields).

 

find_real_file.png

 

find_real_file.png

Thanks for the reply, Lucas. I'm not sure what view your screen shot is from. The Catalog UI Policy condition builder doesn't have the show related fields option.