Catalog UI Policy script with multiple conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 10:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 11:17 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 11:23 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 11:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 12:18 PM