Thursday, September 3, 2009

How to change the record title in MS CRM 4.0

Sometimes we get requirement like change the opportunity title or account title , it should be in red color based on some condition or title should be combination of few fields there in the form.

Here is the Jscript to achieve the same.

//Change the Main Title
var cells = document.getElementsByTagName("span");
for (var i = 0; i < cells.length; i++)
if (cells[i].className == "ms-crm-Form-Title")
cells[i].style.color = "#FF0000";
cells[i].style.fontWeight = "700";

No comments: