Catalog UI Policy

muskaanchan
Tera Contributor

I ma tryint 

I am working on a ServiceNow Catalog Item where I have multiple UI Policies to show/hide variables based on a choice field called “Modification Type”.

🔹 Modification Type values:

  • Item/Category Approval Matrix Modification → approval_matrix_modification
  • Item Form Modification → form_modification
  • Item/Category Visibility Modification → visibility_modification

🟦 Issue:

I have created Catalog UI Policies with conditions like:

  • modification_type = approval_matrix_modification
  • modification_type = form_modification
  • modification_type = visibility_modification

Each UI Policy is configured with:

  • On Load = true
  • Reverse if false = true
  • UI Policy Actions to show/hide variables accordingly

Problem:

On form load, all variables are visible instead of being hidden.

Even after selecting a specific Modification Type, unrelated variables are still visible or not hiding properly.


🟦 What I have already tried:

  • Verified UI Policy conditions
  • Checked choice values (label vs value mapping)
  • Set UI Policy Actions for visible/mandatory correctly
  • Adjusted UI Policy order
  • Ensured variables are not mandatory by default

Still, UI Policies are not behaving as expected.


🟦 Question:

What is the correct approach to ensure that:

  • All variables are hidden on load by default
  • Only relevant variables appear based on selected Modification Type
  • UI Policies correctly evaluate choice values (label vs actual value)

 

8 REPLIES 8

Paul Kunze
Kilo Sage

Hi, your configuration sounds correct. Are you sure that you created Catalog UI Policies and not default UI Policies?

Hi @Paul Kunze 

I am new to this how do I figure that out?

When you type "UI Policies" in the application navigator, you need to open "Service Catalog > Catalog Administration > Catalog UI Policies" instead of "System UI > UI Policies".

PaulKunze_0-1780646829550.png

 

I created these ui policies using the catalog ui policy section that was available in catalog form where I was building the item