Sunday, February 21, 2010

changing the background color of a Form & Tab in MS CRM 4.0

use the following Java script on page load event :


document.all.MyForm.style.backgroundColor = '#ccffcc';


document.all.tab0.style.backgroundColor = '#ccffcc';
crmForm.all.tab0Tab.style.backgroundColor='#ccffcc'
document.all.tab1.style.backgroundColor = '#ccffcc';
document.all.tab2.style.backgroundColor = '#ccffcc';
document.all.tab3.style.backgroundColor = '#ccffcc';


change new_label field label style


var field = crmForm.all.new_label_c;
  field.style.fontWeight = 'bold'; // change font to bold
  field.style.fontSize = '12px'; // change font size
  field.style.color = '#ff0000';  //change font color


No comments:

Post a Comment