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

try following javascript code in a onLoad client script


function onLoad() {


document.getElementById('header_add_attachment').style.display = 'none';


}


Awesome.. it works like charm. thanks lots..


Depending on a variable I want to hide attachments at the top. I wrote a client script onLoad function and tried various permutations of your recommendations in Helsinki


Not hiding!!



var div = document.getElementById( "header_attachment" );


         


                      div.style.display = "none";


  div.innerHTML='';


      var divq = document.getElementById( "header_attachment_list" );


         


                      divq.style.display = "none";


  divq.innerHTML='';



Any ideas?


is this a scoped application ?


yes, it is