Catalog UI Policy behavior differences between ESC portal and ITIL view (record producer variables)

snehalkausa
Tera Contributor

Hi Team,

I have implemented a record producer in which I have a request type dropdown with 2 options - Option1 and Option2.  When Option1 is selected, it should display variableA and when Option2 is selected it should display variableB. This is working as expected in Portal View however in ITIL view (Try it of the record producer)- it did display both variables when I select option1 or Option2. 
I have implemented Catalog UI policy to handle the visibility of variables. Please suggest.
Thanks in advance!

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@snehalkausa 

Ensure UI Type - ALL for your catalog UI policy so that it runs in Native as well

see below screenshot

Even though you are not using script in your UI policy set that to ALL and test once

AnkurBawiskar_0-1786711077813.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Anand__99
Mega Sage

Hi @snehalkausa,

 

Make sure to select "Applies on the Target Record" on the Catalog UI Policy form.

 

Thanks

Anand

Vishnu Surendra
Tera Expert

Hi @snehalkausa 

For your requirement, you need to create two Catalog UI Policies—one for Option 1 and another for Option 2.

For both Catalog UI Policies configured for the Record Producer, make sure that under the When to Apply section:

  1. Applies on a Catalog Item view — set this checkbox to true.
  2. Applies to — set this to Catalog Item.

I verified this behavior in my PDI. When Applies on a Catalog Item view is set to false, both variables are displayed even when either Option 1 or Option 2 is selected.

attached below


If my response helped, please mark it as Correct.


VishnuSurendra_0-1786716954199.png