Issue
Learn how to hide the Attach icon, or paperclip, for a specific catalog item in Service Portal.
Release
Any release supporting Service Portal.
Resolution
To hide this icon, follow these steps:
1. Go to the catalog item where you want to hide the Attach icon (paperclip).
2. Create a new variable of type macro to the specific catalog item.
3. Go to Service Portal Configuration.
4. Create a new Service Portal widget with the following codes in Client controller:
function() {
/* widget controller */
var c = this;
angular.element('label.ng-scope').hide();
//NOTE : The above line here is a JQuery selector inside the angular.element() which is supported in service portal, feel free to change this JQuery selector if you want the attachment element selection to be more specific. In the above code the element label and the class combination are used to hide the attachment
}
5. Add the widget to the macro type variable created in step 2.
Note: The solution is based on the following Community post and is not explicitly supported by ServiceNow.
How to hide attachment icon of catalog item in service portal