Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Different Header Color for each Entity : Dynamics 365

(0) ShareShare
ReportReport
Posted on by

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
    on at
    RE: Different Header Color for each Entity : Dynamics 365

    Thank you all for your responses.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator 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
    13,758 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
    55,410 Moderator 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
    11,615 Moderator 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
    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
    5,237 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans