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 :
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.

I have the same question (0)
  • Suggested answer
    Fubar Profile Picture
    2,761 on at

    What you are requesting is not a supported customization.  

  • Suggested answer
    David Yu Profile Picture
    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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans