web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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
    Fubar Profile Picture
    2,761 on at

    What you are requesting is not a supported customization.  

  • Suggested answer
    David Yu Profile Picture
    Microsoft Employee on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 87 Most Valuable Professional

#2
11manish Profile Picture

11manish 67 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans