Hiding varible in

rahulkhande
Kilo Contributor

Hi Community 

I was facing issue in hiding one varibel.

I have 3 catlog item which are using same varibel set and i want hide one varibel in only one catlog item not in all. In the varible set there in one UI policy is there which work like if i select yes in another varibel then only that varibel is shows and i want to hide that varible. I tried with both ui policy and client script but its still show.

May be the UI policy which is available in the varible set is override my UI policy or client script at my catlog item level.

How can i hide that varible in only one catlog item.

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rahulkhande 

Did you try using a condition in the UI policy to map the item? It should work if that’s available. If not, it’s better to create a separate variable.

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@rahulkhande 

in your onLoad catalog client script check the URL and it will contain catalog item sysId

Based on that you can handle the logic and ensure it hides it only in 1 catalog item

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@rahulkhande 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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