Sunday, December 19, 2010

Create a header with the form information in ms crm

Some times we need to show a header informations in ms crm 4.0.(but its available OTB in 5.0). as in pic.

just follw the followings and change ur attributes as per your requirements.

var elem = document.getElementById("leftNavBreadcrumbText");

var fullName = (crmForm.all.name.DataValue != null) ? crmForm.all.name.DataValue : "";
var NRIC = (crmForm.all.new_nric.DataValue != null) ? crmForm.all.new_nric.DataValue : "";
var handPhone= (crmForm.all.new_handphone.DataValue != null) ? crmForm.all.new_handphone.DataValue : "";

if (elem != null) {
var actualHTML = elem.innerHTML;
actualHTML += '
actualHTML
';
elem.innerHTML = actualHTML ;
}

Sudhanshu

No comments:

Post a Comment