Skip to main content

Notifications

Microsoft Dynamics CRM forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

How to apply color to columns in view

Posted on by 50
Hello,
 
In Dynamic 365 online, I have a view that contains a read only table. Depending on the value of the column, how do I use JavaScript to update the background color?
 
I was able to grab the values using JSON.parse(rowData) and create some switch cases but am not able to get the color to change. Tried using some articles but they may be out of date. Thanks for any help!

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans