Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Modify the color of the warning message.

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.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans