Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide attachment on an incident record producer

sami_siddiqui
Kilo Explorer

Hi,

 

I am trying to hide the attachment icon on header with below code in Eureka   in an on load client script but it is not hiding the icon.

 

var attachment_header = document.getElementById('header_attachment_list');

attachment_header.style.display='none';


Any help or advise will be highly appreciated.


Sami.

1 ACCEPTED SOLUTION

Can you try hiding the attachment icon using below script



$$('img[title="Attachments..."]')[0].up().up().down().hide();


View solution in original post

20 REPLIES 20

Thanks Amdadul. your suggestion seems to be working for my scoped application.