Change a field label style
/* change field (new_name) label style */
if (crmForm.all.new_name!= null)
{
var field = crmForm.all.new_name_c;
field.style.fontWeight = ‘bold’; // change font to bold
field.style.fontSize = ’12px’; // change font size
field.style.color = ‘#ff0000’; //change font color
}
Change a field text style
/* change field (new_name) label style */
if (crmForm.all.new_name != null)
{
var field = crmForm.all.new_name;
field.style.fontWeight = ‘bold’; // change font to bold
field.style.fontSize = ’12px’; // change font size
field.style.color = ‘#ff0000’; //change font color
}
This works if field label is position is side. If the field label position is top, it is not working. I have checked this in CRM 2013.
LikeLike