Hiding Buttons in MSCRM 4.0
http://dmcrm.blogspot.com/2008/01/hiding-buttons-in-mscrm-40.html
//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') == 'INSERT ELEMENT TITLE HERE')
{
//Replace the DHTML with blank tags to hide the button
lis[i].outerHTML=''
}
i = i + 1;
}
//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') == 'INSERT ELEMENT TITLE HERE')
{
//Replace the DHTML with blank tags to hide the button
lis[i].outerHTML=''
}
i = i + 1;
}

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home