How to make attachments mandatory for some of the service options?
Service Catalog 17.x
1. Set: Catalog - Configuration - Request Management Configuration - Allow Attachments at Service Option Level be set to Yes
2. Set the Attachment Mandatory in the Service Option Level:
Now it will force the Attachment as Mandatory for that Service Option Level.
If there is no attachment at Service Option level, the following message will appear:
To submit this request, you must add an attachment to the service option(s) <service option name>. Use the Attachment icon of the service option.
Depending on requirements, setting "Allow Attachments at Service Option Level" may need to be set to "No" to allow attachments at offering level to save correctly.
Setting the "Attachment Mandatory" setting as ON and "Allow Attachments at Service Option Level" to "No" will prevent a situation where the given offering will not allow a request to be saved due to required attachments, despite an attachment being included. This is expected behaviour.