How to make attachment mandatory with Service Catalog Item on the Service PortalDescription Currently we don't have provision to make an attachment mandatory on catalog item in Service Portal. This article will brief on how to achieve making the attachment mandatory on catalog item in Service Portal. ResolutionStep1: Create a UI script with below details, API Name: GlobalCatalogItemFunctionsUI Type: AllActive: trueScript:function getSCAttachmentCount() { var length; try { length = angular.element("#sc_cat_item").scope().attachments.length; } catch(e) { length = -1; } return length;} Step2: Create an Onsubmit catalog client script as below, Name: make attachment mandatoryApplies to: A Catalog ItemActive: trueUI type: AllType: OnsubmitCatalog Item: <Set the required catalog item>Applies on Catalog Item view: trueScript:function onSubmit() { //Type appropriate comment here, and begin script below try { //Works in non-portal ui var attachments = document.getElementById('header_attachment_list_label'); if (attachments.style.visibility == 'hidden' || attachments.style.display == 'none' ) { alert('You must attach the completed form before submitting this request.'); return false; } } catch(e) { //For Service Portal var count = getSCAttachmentCount(); if(count <= 0) { alert('You must attach the completed form before submitting this request.'); return false; } }} Step3: Set the JS include on Service Portal theme Navigate to "Service Portal => Portals"Filter for URL suffix = spOpen the portal recordOpen the theme record from the portal recordGo to the bottom of the theme record and go to the JS include related list and click on New buttonEnter display name as attachment validation, then set Source as "UI script", and select UI script from the lookup as "GlobalCatalogItemFunctions" as created in step1 Please note that this is purely customization from the community and it falls outside of our support scope. Additional InformationUI Script Service Portal