Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Implement CSS in MS Dynamic CRM (On Premise) 2016

Posted on by Microsoft Employee

Hi All,

I have to implement CSS on Case screen mainly and I am using instructions given in following articles. However I am not able to see the changes after its implementation.

http://www.codeproject.com/Articles/1032318/Improve-user-experience-by-styling-and-coloring-Mi

https://snataw.wordpress.com/2014/01/30/prettify-entity-form-in-crm-2013/#more-317

https://www.linkedin.com/pulse/how-colorize-microsoft-dynamics-crm-20132015-crm-consultant

Please help.

Thanks & Regards,

Vivek

*This post is locked for comments

  • Verified answer
    M.T. Eikelenboom Profile Picture
    M.T. Eikelenboom 5,241 on at
    RE: Implement CSS in MS Dynamic CRM (On Premise) 2016

    You can't change the CSS through the Xrm.Page object model.

    If you read the blogs carefully you will see it uses other methods to set the styling. Other than that, I don't think you will find a lot of help here doing these customizations. And most will strongly advise to not do these kind of customizations. If you need these type of solutoins, building a web resource is a far better idea.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Implement CSS in MS Dynamic CRM (On Premise) 2016

    Hi Vijay,

    Thanks for the response. But I want to proceed to make changes on case main form using CSS as per my requirement.

    If I execute following code on load of case form to change title then also there is no change in "Case Title" label.

        Xrm.Page.getControl("title").getLabel().fontcolor = '#ff0000';

       Xrm.Page.getControl("title").getLabel().fontsize = '120px';

       Xrm.Page.getControl("title").getLabel().bold = true;

    Please help in using CSS on CRM pages.

    Regards,

    Vivek

  • Suggested answer
    Kumar Viju Profile Picture
    Kumar Viju 1,026 on at
    RE: Implement CSS in MS Dynamic CRM (On Premise) 2016

    Hi,

    This is Unsupported Customization. The Claim made by the blogger on Code Project as supported customization is not correct.

    https://msdn.microsoft.com/en-us/library/gg328350.aspx 

    Modifications to any .aspx, .css, .htm, .js, .xml, .jpg, or .gif files or the addition of files in the wwwroot directories of the Microsoft Dynamics CRM application, Microsoft Dynamics CRM tools, or Microsoft Dynamics CRM files located at Program Files\Microsoft Dynamics CRM. However, if you have made changes to these files, these files are checked for modifications and will not be overwritten.

    If you still go ahead with this changes then Microsoft will not provide you any support for future update. You can open support ticket with Microsoft to verify if you can go ahead with this approach.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans