How to hide the Quantity field on a Catalog Item form in ServiceNow?

VishwamitraM
Tera Expert

Hi Community,

I have created a custom catalog item, and I want to hide the Quantity field from the catalog request form (the form shown when a user opens the catalog item and submits a request).
I noticed that there is a Portal Settings option under the catalog item’s configuration in the Maintain Items module, and it allows me to hide the Quantity field on the Service Portal. However, this only affects the Service Portal and doesn’t hide the Quantity field on the classic UI catalog item form.
Can someone guide me on how to hide the Quantity field on the catalog request form in the standard UI?

Thank you!

#ServiceCatalog  #CatalogItem #FormCustomization

1 ACCEPTED SOLUTION

VishwamitraM
Tera Expert

Hi @Dr Atul G- LNG 

Thanks for replying but I did some research and found that there are below attributes which we can set to do it on a particular catalog item. In my case I did below and was able to hide the quantity option:

Set No cart, No Quantity options as true
Set Use cart layout option as false

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @VishwamitraM 

 

To hide in native view, you need to write the UI policy or client script.

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

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

VishwamitraM
Tera Expert

Hi @Dr Atul G- LNG 

Thanks for replying but I did some research and found that there are below attributes which we can set to do it on a particular catalog item. In my case I did below and was able to hide the quantity option:

Set No cart, No Quantity options as true
Set Use cart layout option as false

VishwamitraM
Tera Expert

Hi @Dr Atul G- LNG 

Did some research and found that there are below attributes which we can set to do it on a particular catalog item. In my case I did below and was able to hide the quantity option:

Set No cart, No Quantity options as true
Set Use cart layout option as false

Perfect.. If all good, please close the thread.

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

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