Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Catalog UI Policy not working on CITEM

kishorchika
Tera Contributor

Hello Everyone,

I need your help please, 

I would like to apply catalog UI POLICES with two variables ( select box).

When to apply:

If      var 1 is X

and  var 2 is X

OR

if     var 1 is Y 

 and var 2 is X

The UI policy  action:

The var 3 ( select box) should be visible.

This UI policy works only when I put one condition = var 1 is X, when I add the seconde one ( var 2 is X) it stops working.

Thank you in advance, 

 
1 ACCEPTED SOLUTION

pranita-24
Tera Guru

@kishorchika 

Hi as per your requirement I have created one catalog UI policy.
There are three select box variables.
1. Class---> Options A]First year  B] Second Year
2. Division---->A] A B] B
3. Department---->A]Computer B] Electrical
Conditions-:
When Class is First year  and Division is A OR Class is Second year and Division is A 
Then Variable Department should be visible .
Below are some Screenshots.
INPUTS-:
1

pranita24_0-1735638395563.png

 

 

2.

pranita24_1-1735638395018.png

 

3. OUTPUTS-:

pranita24_2-1735638395454.png

 

 

pranita24_3-1735638395598.png

 

pranita24_4-1735638395105.png

 

pranita24_5-1735638396049.png

 

pranita24_6-1735638395424.png

 

 

You can try this I am sure it will help you to fulfill your requirement. 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Pranita

View solution in original post

5 REPLIES 5

pranita-24
Tera Guru

@kishorchika 

Hi as per your requirement I have created one catalog UI policy.
There are three select box variables.
1. Class---> Options A]First year  B] Second Year
2. Division---->A] A B] B
3. Department---->A]Computer B] Electrical
Conditions-:
When Class is First year  and Division is A OR Class is Second year and Division is A 
Then Variable Department should be visible .
Below are some Screenshots.
INPUTS-:
1

pranita24_0-1735638395563.png

 

 

2.

pranita24_1-1735638395018.png

 

3. OUTPUTS-:

pranita24_2-1735638395454.png

 

 

pranita24_3-1735638395598.png

 

pranita24_4-1735638395105.png

 

pranita24_5-1735638396049.png

 

pranita24_6-1735638395424.png

 

 

You can try this I am sure it will help you to fulfill your requirement. 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Pranita