We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

UI policies on variable set

ShaziyaS1041050
Tera Contributor

 

Hi @Ankur Bawiskar

I have written two ui policies on variable set one to hide two fields on all catalog items , and other two show mandatory fields on all catalog items and this variable set is used by all the catalog items , but when i open the catalog items it is hiding all the fields , and i want to show two fields on catalog tasks that iam hiding on all the catalog items . can u help over this.

7 REPLIES 7

Sarthak Kashyap
Mega Sage

Hi @ShaziyaS1041050 ,

 

 

Can you please check the box - "Reverse if false".

 

Please mark my answer correct and helpful if this works for you

Thanks,

Sarthak

 

Ankur Bawiskar
Tera Patron

@ShaziyaS1041050 

Then ensure your Catalog UI policy doesn't run on Catalog Task

Applies on Catalog Task - Uncheck

💡 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

it should run on catalog task , so that fiels will be visible on catalog task based on short description , and should be hided on the catalo item

@ShaziyaS1041050 

so that's what I mentioned.

If you uncheck "Applies on catalog task" on your ui policy then your UI policy won't run on catalog task

you can have separate logic to show/hide your variables on catalog task then

💡 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