Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

hide the variables in a variable set for a particular catalog item

ShaziyaS4380655
Tera Contributor

Hi @Ankur Bawiskar 

i have created a catalog item and added variables set to it, in this variable set i have variables which are mandatory at the dictionary level , but i want to hide this variables  to the  catalog item in which this variable set is added 
can u help with this?

1 ACCEPTED SOLUTION

@ShaziyaS4380655 

Thank you for marking my response as helpful.

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

View solution in original post

9 REPLIES 9

ShaziyaS4380655
Tera Contributor

@Ankur Bawiskar 

@M Iftikhar

@Dr Atul G- LNG 

@NavinAgarwal 

 

I have tried creating catalog ui policies and client scripts but can only able to make tye filed non mandatory, but it showing on the form..

Hi mate,

 

Then you need to remove the mandatory from dictionary level and I guess then it works. Try this workaround.

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

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

@ShaziyaS4380655 

I already informed I doubt it might work as the variable is mandatory at config level

AnkurBawiskar_0-1759807473415.png

 

2 Ways now

1) remove the mandatory from config level and make those mandatory on your other catalog items using UI policies

2) then no need to create UI policy on your new 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

@ShaziyaS4380655 

Thank you for marking my response as helpful.

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

-O-
Kilo Patron

Never use read-only and/or mandatory "dictionary" attribute, always use UI Policies - exactly to avoid these kind of situations.
If you unset the dictionary attribute and you create the proper UI Policies, it will work as expected, just keep in mind that UI Policies setting mandatory policy must always have lower order value than other type of policies, like visible or read-only policies.