Hide workflow buttons

By | December 20, 2008

Write this script written between in custom content field of Opportunity Detail Screen with Window’s Onload event.

datediff=document.EntryForm. hdndiff.value;

if(datediff>2)

{

var a=document.getElementsByTagName(“Table”);

for(i=0;i {

if(a[i].className==”Button”)

{

var b=document.getElementsByTagName(“A”);

for(i=0;i {

if(b[i].className==”WFBUTTON”)

{

b[i].innerText=””;

}

}

}

}

}