Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How to change the background colour of an optionset field based on answer

Posted on by 428

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
    PS10 428 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
    Marco.P 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

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