Even it is unsupported.. there are some resources online showing how to inject css into the form to allow customization of the UI appearance (border, padding... etc). I am wondering if this still works on Microsoft Dynamics 365 Version 1612 (9.0.2.3034) (DB 9.0.2.3034) on-premises. Has anyone tried this kind of function on this CRM version as I did a test and no luck.
Thanks.
Hi EASONH,
Please refer to my code and check whether it helps.(Run it at OnLoad event of form.)
function createStyle() { var customStyle = ''; customStyle = '.refresh-form TD.ms-crm-Form-Section, DIV.ms-crm-Grid-Title-Background-color {background-color: rgba(91,192,222,1)!important}'; var css = document.createElement('style'); css.type = 'text/css'; css.innerHTML = customStyle; parent.document.head.appendChild(css); }
I added !important property to my custom css rule to overwrite the default style.
(The code is used to change default header color of section, you just need to add your own css to customStyle variable.)
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156