Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

how to change the header color based on a value?

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to do something VERY basic.

I want to change the background color of the form header when a value is present in my data.

for example, I have an alert flag in my entity.

when the alert is set, I want to set the background color to red.

how I can access the header HTML object?

my jquery / javascripts are not working.

like document.querySelector('[data-id="form-header"]') is returning nothing.

any idea on how to do this?

thanks.

  • Suggested answer
    David Yu Profile Picture
    David Yu on at
    RE: how to change the header color based on a value?

    Hi Jerome,

    Dynamics 365 Theme only support instance level change.

    docs.microsoft.com/.../change-color-scheme-add-logo-match-organizations-brand

    We don't support DOM changes with JS.

    docs.microsoft.com/.../use-javascript

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: how to change the header color based on a value?

    What you are requesting is not a supported customization.  

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans