Customization Using JScript

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
}

One thought on “Customization Using JScript”

  1. 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.

    Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: