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

Announcements

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 background colour of an optionset field based on answer

(0) ShareShare
ReportReport
Posted on by 8

Hi, 

I am looking a way to change the background colour of an option set field to be Red based on the value. 

Its a field to select yes and no and for every yes the field should be turned to Red to grab users attention. 

Please suggest the best possible way. 

Many Thanks,

PS

I have the same question (0)
  • Suggested answer
    Marco.P Profile Picture
    2,405 on at

    Hi,

    take a look at this thread:

    community.dynamics.com/.../problem-with-web-resources---event-does-t-fire-correctly

    also you could use emoji on option set field:

    powerplatformramblingsbystevenblog.com/.../

    like these:

    pastedimage1587647795865v1.png

    Hope it helps,

    Marco

  • PS10 Profile Picture
    8 on at

    Hi Marco,

    First of all many thanks for your swift response.

    I have now gone through both links you have provided above, I will try out the emoji on option set looks pretty straight forward and easy to follow steps.

    However, i must have mentioned before i am not a developer so any Jvsript i will have to implement has to be precisely what i am looking for, i can try and make changes in the code suggested on the forum but that would be me doing hit and trial, so i would still look for a precise code for an options set when selected Yes changes to Red.

    Also if this makes any difference, we are d365-on-premise.

    Thanks,

    PS

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans