Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get the color on a form section?

Posted on by 73

Hi Community,

Have been trying to find the cosmetic option of getting the blue line at the top of each section, but unable to find it. It does make each section stand-out and much clearer to view.

Have tried the classic and new UCI interfaces, but no luck. Anybody out there who can guide me in the right direction?

Regards,

Dominic.

1462.Pic.png

  • Dynamics4Dom Profile Picture
    Dynamics4Dom 73 on at
    RE: How to get the color on a form section?

    Thanks Clofly.

    I was looking at an OOTB way of doing it, but it seems like a custom method is the only way.

    Kind Regards,

    Dominic.

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to get the color on a form section?

    Hi Dominic,

    You could make customized style for sections with code above, it works well.

    pastedimage1571993056291v1.png

    Please let me know if it could meet your requirement, thanks. :) 

    Regards,

    Clofly

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to get the color on a form section?

    Hi Dominic,

    Could you share me which entity and which form that their sections border top have color in your posted image?

    And in which entity and form that their sections border top have not color?

    It seems that many entity and their form hasn't border top color.

    pastedimage1571984857005v1.png

    If you would like to modify these sections style which may not be supported to style customization,

    you could create a web resource and insert css style rule to change them with unsupported method.

    var cssRules = 'section { border-top: 2px solid orange!important; }';
    
    var styleElement = document.createElement('style');
    
    styleElement.appendChild(document.createTextNode(cssRules));
    
    parent.document.getElementsByTagName('head')[0].appendChild(styleElement);

    Regards,

    Clofly

  • Dynamics4Dom Profile Picture
    Dynamics4Dom 73 on at
    RE: How to get the color on a form section?

    Hi Clofly,

    Thanks for your reply.

    I do know how to get the hex or rgb code for the color, but where do I configure it in D365 for a form section? I don't see it in the Themes area unless I'm missing something.

    My current form sections appear as below. I need to customize the top of each section with a color similar to the screenshot in my original post.

    7888.Pic.png

    Regards,

    Dominic.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to get the color on a form section?

    Hi Dominic,

    Could you let me know your real requirement ?

    > Do you want to get color hex code for that blue line ?

    The hex code for this color is #3b79b7, you can get its rgb color 

    with element inspector in developer tool or with a extension ColorZilla if your client browser is Chrome.

    I get the color rgb code and covert it to hex code with third party website.

    > Do you want to customize the color to that ?

    You can build your own theme in Settins > Customizations > Themes with supported elements,

    pastedimage1571983326671v1.png

    Regards,

    Clofly

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans