logo

NJP

Mandatory Attachments in Service Catalog

Import · Mar 06, 2017 · article

I've seen a lot of questions on the community where people would like to for example set a specific number of attachments as mandatory before the end user can submit the order.

Of course this can be done in more than one way, but here I'm showing a way where you as a sys admin or developer can leave the future configuration to the catalog admins. You don't need to do anything if they want to change the amount of attachment on an item or remove it. They can do it them self.

I basically just do 2 things:

1. Add a new field to the sc_cat_item table to handle the amount of attachment the limit should be.

2. I copy the widget SC Catalog Item and modify it to handle this functionality when the user submits.

So here is the video and I'm sorry about the quality, but I thought it was going to record in HD, but after I don't have time to record a new 30 min video But if there is anything you wonder about, just let me know.

View original source

https://www.servicenow.com/community/developer-blog/mandatory-attachments-in-service-catalog/ba-p/2266920