How to apply a UI Policy to a variable on a catalog item

DevtoSME
Giga Guru

Hi i need to hide a variable on a catalog item using a UI policy. how do I use the "when to apply" section if I cant find the variable name to make a condition. or do i have to used the advanced option and script it.

 

 

if i need to script how do i construct the script. I'm not proficient with coding just yet

1 ACCEPTED SOLUTION

SumanthDosapati
Mega Sage
Mega Sage

Hi,

May be you are using 'UI Policy' instead of 'Catalog UI Policy'

 

Regards,
Sumanth

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

If you are using catalog item then you need to create Catalog UI policy.

Also the variable which you wish to use in condition is standalone or present in MRVS?

Regards
Ankur

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

@Joyea Mells 

Did you mistakenly marked other response as correct?

I already mentioned the same as 1st response to your question that it should be catalog UI policy if it's a catalog item.

The answer marked as correct is a repeat of what I already mentioned.

Please remember you can mark only 1 response as correct.

Would you mind marking my response as correct based on timely response?

Regards
Ankur

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

Voona Rohila
Kilo Patron
Kilo Patron

Hi Joyea

Check if you are using catalog UI Policy or not, you'll be able to see all the active variables.

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

i see i was using the 3 line configure UI policy on the catalog item and not  the catalog UI policy