Skip to main content

Notifications

Dynamics 365 Community / Forums / Sales forum / Change Cell Background...
Sales forum
Suggested answer

Change Cell Background Color of Opportunity View based on value in Dynamics

Posted on by 10

Hello:

Does anyone know if there is a way to change the color of the background of a cell in the views based on the current value for opportunity views?

For example: If No is entered into exclude from forecast we would like to change the cell background to Green and if Yes then Red.

pastedimage1638900976091v1.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Cell Background Color of Opportunity View based on value in Dynamics

    Hi Partner,

    Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.

     Image

    Thanks in advance! :)

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Cell Background Color of Opportunity View based on value in Dynamics

    1.One way would be to add different color icons in front of your cell.

    Display custom icons alongside values in list views | Microsoft Docs

    2.Another way is PCF controls--Colorful Optionset Grid(Colorful Optionset Grid | PCF Gallery).

    Using this control, you can show the OptionsSets using the colors customized using the standard experience. Starting with the release 8, the ColorfulOptionsetGrid works also for Boolean/TwoOptions and for MultiSelectOptionset/MultiSelectPicklist.

    You can download zip file:Release Release 8 - boolean and multipleOptionSets · brasov2de/ColorfulOptionsetGrid · GitHub

    Then you can refer Guidance Notes to customize view as your need:GitHub - brasov2de/ColorfulOptionsetGrid

    Here are steps:

    (1)Import download file to solution.

    pastedimage1638945561663v2.png

    (2)give option field value different color as your need.

    pastedimage1638945349859v1.png

    (3) Configure control in the view you need.

    pastedimage1638947664469v3.png

    Save and Publish all customizations.

    (4)Test:

    pastedimage1638948142143v4.png

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Change Cell Background Color of Opportunity View based on value in Dynamics

    Hi,

    You can not achieve it using supported way.

    I would not recommend to use any unsupported code as it might break when new updates release by  microsoft.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Nya Profile Picture
    Nya 29,054 on at
    RE: Change Cell Background Color of Opportunity View based on value in Dynamics

    Hi,

    Please refer to the following post which provides an example applicable to Lead.

    (+) Dynamics CRM - Dynamically change row color in grid view - Microsoft Dynamics CRM Community

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,173 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans