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.

Query Related to UI policy and UI policy actions

swaghosh
Tera Expert

Scenario: I have a catalog variable of lookup type with 3 choices: Type1, Type 2 and Type 3 shows in drop down list
And I have 5 catalog variables: var1, var 2, var 3 , var 4 and var 5

When lookup type is Type1, i want var1, var 2 , var 5 should be visible

When lookup type is Type 2: i want var 1, var 3 and var 4 should be visible

When lookup type is Type 3: I want var 2 only to be visible

 

Please let me know what is the best way to do this

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @swaghosh 

 

It is easy by Catalog UI policy

 

3 different UI Policy

Type 1

Type 1 = xxxx

UI Action

var1, var 2 , var 5 should be visible

 

In same manner create 2 more UI policy. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Jagadish Sanadi
Kilo Sage

Hello @swaghosh 

 

Step1: Create Lookup variable

JagadishSanadi_0-1707243375279.png

Step2: Create variables

JagadishSanadi_1-1707243633097.png

Step3: Create UI policy

JagadishSanadi_2-1707243714268.png

Output: When T1 selected

JagadishSanadi_3-1707243771206.png

 

Please mark useful if my response helped you