Sometimes we get requirement to change the
forecolor for some fields in Dynamics CRM 2013 in order to highlight them in
different color. So we implemented following script:
You can add the scripts on-load or based on
some condition.
For changing color during field is
non-selected:
//Setting red color
$(‘#fieldname’).find(‘div[class="ms-crm-Inline-Value"]‘).css(‘color’,color);
In order to change color during field is
typed:
//Setting color blue during typing of field
$(‘#fieldname_i’).css(‘color’, color);
Note: This is unsupported script and may
break in future if Microsoft changes something.
No comments:
Post a Comment