Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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

Can you try hiding the attachment icon using below script



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


Excellent Dhananjay,It worked.Many thanks for your help.



Sami.


Hi Sami,



Can you please confirm if this code works for Fuji? I have the following on load client script on change form. but seems like the code doesnt hide the attachment paper clip, any suggesstion??



function onLoad() {


  //Type appropriate comment here, and begin script below


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


}



thanks in advance.


chasingtheflow
Giga Contributor

If you prefer jquery:



$j('img[title="Attachments..."]').hide();



Or vanilla js:



document.querySelectorAll('img[title="Attachments..."]')[0].style.display = 'none';



Make sure to test in your supported browsers...


Ak Islam
Giga Contributor

Hi All



Can you please confirm if this code works for Fuji? I have the following on load client script on change form. but seems like the code doesnt hide the attachment paper clip, any suggesstion??



function onLoad() {


  //Type appropriate comment here, and begin script below


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


}



thanks in advance.