Great script for hiding buttons on forms, this can be used for both custom buttons or out of the box buttons. Code is from DMCRM and can be found here.
onload
//Get all of the List Elements
var lis = document.getElementsByTagName('LI');
var i = 0;
//Loop through the list items
while (i < lis.length) {
//Don't worry about any list item that doesn't have the title you are looking for.
if (lis[i].getAttribute('title') == 'Qualify or disqualify the lead')
{
//Replace the DHTML with blank tags to hide the button
lis[i].outerHTML='<SPAN></SPAN>'
}
i = i + 1;
}
Update: The “Messages” associated with an entity control the tags, be sure you make these updates after updating the messages.
