web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    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();

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    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)

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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

  • Community Member Profile Picture
    on at

    Thank you all for your responses.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans