This discussion is archived
0 Replies Latest reply: Nov 14, 2012 12:52 AM by 968310 RSS

Hide / Rename Buttons in R20

968310 Newbie
Currently Being Moderated
Hi Folks,

I want to rename the Convert button the lead detail page to Approve, so for this I have written a web applet with the following Javascript :

<script type="text/javascript">
var td = document.getElementsByTagName("td");
for (var i = 0; i < td.length; i++)
{
     if (td.innerHTML == " Convert ")
     {
     //alert (td[i].innerHTML);
     td[i].innerHTML = " Approved ";
     }
     
     if (td[i].innerHTML == "Rename Convert Button"){
          td[i].innerHTML = "";
     }
}
     
     var a = document.getElementsByTagName("a");
     //alert(a.innerHTML);
     // Code is for the <environment>. This part is to hide the related information title
     if (document.getElementById("apptab_AAPA-P9439N"))
     {
          document.getElementById("apptab_AAPA-P9439N").innerHTML = "";
          document.getElementById("apptab_AAPA-P9439N").innerText = "";
     }

</script>

The button gets renamed, but I want the related info tab to be hidden or with no text.
Any help / advice.

Regards

Roshan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points