Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Different Header Color for each Entity : Dynamics 365

Posted on by Microsoft Employee

Hello

If its possible to have different header color for each entity (e.g. Account - red, lead - green)?If its possible to do with system customization without any coding?

Thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Different Header Color for each Entity : Dynamics 365

    Thank you all for your responses.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Different Header Color for each Entity : Dynamics 365

    Hi,

    There is no supported way you can change the color of entity header in Dynamics 365 and without code unfortunately its not possible. There is only new feature available to change the section header color inside form .  You can have a look  -

    www.marksgroup.net/.../dynamics-365-customize-subgrid-header-colors

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Different Header Color for each Entity : Dynamics 365

    Hi There,

    in dynamics 365 , max what you can do in a supported way is just color entity subgrids header : rawishblog.wordpress.com/.../color-subgrid-in-microsoft-dynamics-crm-365

    apart from it if you are trying to achieve anything, its going to be unsupported( untill ofcourse you will like to develop your own custom HTML)

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Different Header Color for each Entity : Dynamics 365

    Hi,

    No it is not possible to achieve this with customization. You can't even change the colors with code using supported methods.

    Hope this helps.

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Different Header Color for each Entity : Dynamics 365

    You can have a webresource HTML page, add a color banner with a <div> and bgcolor.

    Embed that with different color in each entity form as first control in first section/tab.

    This is supported.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Different Header Color for each Entity : Dynamics 365

    Hi,

    you cant achieve it without coding and this is not supported. Please beware by using code above, it might breaks in future update.

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Different Header Color for each Entity : Dynamics 365

    Hi,

    You can refer following code for reference:

    ////////////////////////////////To Set Styling of form elements//////////////////////////////////////////////////////////////////////////////////

    function tab_color() {

       ///////Section Heading Row color////////////////////////////

    //.ms-crm-Inline-Value label{font-size:14px;font-family:'Segoe UI', Tahoma, sans-serif;font-style:normal;color: yellow;}

    debugger;

       var formsection = document.getElementsByClassName("ms-crm-Inline-Value");

       for (i = 0; i < formsection.length; i++)

       {

           formsection[1].style.backgroundColor = "rgb(33,91,154)";

           formsection[1].style.padding = "5px";

       }

       // var formsection_heading = document.getElementsByClassName("ms-crm-Form");

       // for (i = 0; i < formsection_heading.length; i++)

       // {

           // formsection_heading[i].style.color = "red";

           // formsection_heading[i].style.fontSize = "12px";

       // }

       // var Heading_section = document.getElementsByClassName("ms-crm-Form");

       // for (i = 0; i < Heading_section.length; i++)

       // {

           // Heading_section[i].style.color = "#ffffff";

       // }

       // var label_font = document.getElementsByClassName("ms-crm-InlineEditLabel");

       // var i;

       // for (i = 0; i < label_font.length; i++)

       // {

           // label_font[i].style.fontSize = "11px";

       // }

    }

    ////////////////////////////////call on form load//////////////////////////////////////////////////////////////////////////////////

    Also you need to check logical name and based on name you can change color.

    var EntityName = Xrm.Page.data.entity.getEntityName();

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