I am trying to give my users the option to print reports from the 'Run Activity' button or by using the printIt() option on a button. The user does not plan to use Email so I am trying to hide the 'Email' and the 'Email to PDF' buttons. I saw another post that has the following Java script:
Code: Select all
function nuLoadThis(){
hideButtons(document.body);
}
function hideButtons(node){
for(var i = 0; i < node.childNodes.length; i++){
hideButtons(node.childNodes[i]);
}
if(node.className == 'actionButton'){
var bTitle = node.value;
if(bTitle == 'Print to Screen' || bTitle == 'Email'){
node.style.visibility = 'hidden';
node.style.width = '0px';
}
}
}
Please give me more detail on where to put the Javascript or if there is an alternative.
Thanks,
John