In Zurich Release how to hide attachment icon on the catalog item

Chavva Bindu
Tera Contributor

With DOM manipulation being unsupported in Zurich release, what is the best practice to hide the attachment icon on the catalog item in the Native UI

6 REPLIES 6

Shivambitanwar1
Tera Contributor

Hi Chavva,

Is it on the catalog item form or native item submission page com.glideapp.servicecatalog_cat_item_view.do ? 

//Shivambi

HI Shiva, It's on the Native item Submission page.

HI @Shivambitanwar1 , Yes it's on the native Submission Page  com.glideapp.servicecatalog_cat_item_view.do ? 

DOM manipulation is not a best practice and I would push back on the requirement . Ask users or agents to use employee center or portal where hide attachment checkbox will work. This would be the best practice.

Having said that, the only way I know to do it is by: Creating an Onload catalog client script for your catalog item and uncheck the isolate script checkbox ( if you do not see it then bring it on the form by configuring form layout and look for isolate script field ) . 

var attachBtn = document.getElementById('sc_attachment_button');
if (attachBtn) {
attachBtn.style.display = 'none';
}


//Shivambi