I have a requirements to add some background colors, alignments and fonts to Microsoft dynamic CRM form. I believe this is very important since the default themes in Microsoft dynamic CRM 2013/2015 are colorless with same background for all sections. Before: After:
You need to have a basic understanding of Microsoft dynamic CRM customization, Javascript and stylesheet.
I have started looking on the internet and I found a good solution written by Hassan Kazemi. The problem with this solution was any styling will be applied for all items on the page for example all sections, all tabs...Etc. I tried to expand Hassan Kazemi idea by dealing with form items separately. Therefore you will have more flexibility on the form to play with color, fonts, background, padding or any styling options. The basic idea is to create a custom style sheet file and load this file on (form load) JavaScript event to override the original style sheet on fly. How to apply
function LdCSS() { var path="/WebResources/new_custom.css"; var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = path; link.media = 'all'; head.appendChild(link); }
Now you can refresh the form page and get the style applied. So, Go ahead and enjoy with an intuitively colored screen.
This solution working fine with on-premises dynamic CRM only. Unfortunatly it is not working with CRM online.
https://www.linkedin.com/pulse/how-colorize-microsoft-dynamics-crm-20132015-crm-consultant
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)