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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Modify the color of the warning message.

(0) ShareShare
ReportReport
Posted on by 50

I need to change the color of the background, the font size and the font weight from the warning message

pastedimage1666084384330v1.png

I tried achieve this via javascript, to get the warning html id and set the color. Via console I can do it because the whole page has already loaded and rendered.

However, if I create a webresource and ask it to load with the onload function in the form. It won't change because the whole page was not fully loaded yet.

It would be good if there is a way of achieving it with a css web resource as well.

Is there anyway we can change it? 

The user has visual impairment and this is a need.

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Modify the color of the warning message.

    Hello,

    I would recommend not to try tweaking the OOB functionality but using PCF where you have full power over the styling of the control - pcf.gallery/.../

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans