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

  • PS10 Profile Picture
    8 on at
    RE: How to change the background colour of an optionset field based on answer

    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

  • Suggested answer
    Marco.P Profile Picture
    2,405 on at
    RE: How to change the background colour of an optionset field based on answer

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,238 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans