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

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 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans