Catalog UI Policies to show/hide variables based on "grant" or "revoke" variable option

Aprille
Kilo Guru

I have 2 UI Policies to show variables based on a select box option of another variable.  

1. If access_type = grant (order 100)

Then show the following variables:

itil_license, approver_license, add_to_group, additional_role_SNOW

2. If access_type = revoke (order 200)

Then show the following variables:

remove_approver_license, remove_itil_license, remove_user_from_group, revoke_access

Here are the screenshots:

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Here is the result:

find_real_file.png

find_real_file.png

The revoke catalog ui policy is working, but the grant is not.  I've tried adding the grant variables with visible false to the Hide/Show on Revoke policy along with the visible true variables, and did the same to the Hide/Show on Grant policy, but still no luck.  It acts like the policies are stepping on each other, but for the life of me, I can't figure out why.  I've messed with the On Load, Reverse if False values and I even added the "None" to the variable options for Select the access requested variable.  Nothing seems to work.  What am I doing wrong?  I've already spend WAY too much time on this.  Any help is really appreciated!!

 

 

1 ACCEPTED SOLUTION

Aprille
Kilo Guru

Well, I figured it out.  I have to have the "None" option added to the "Select the access requested" variable, create another ui policy that sets all the options (for both add and revoke) to false, and uncheck the Reverse if false.  Then my ui policies work, showing only the values that should be shown.  Of course, right after I wrote this.  Thanks for the support, anyway!

View solution in original post

1 REPLY 1

Aprille
Kilo Guru

Well, I figured it out.  I have to have the "None" option added to the "Select the access requested" variable, create another ui policy that sets all the options (for both add and revoke) to false, and uncheck the Reverse if false.  Then my ui policies work, showing only the values that should be shown.  Of course, right after I wrote this.  Thanks for the support, anyway!