Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to display green / red amber on field / column

Posted on by 25

Dear all ,

i would like to display a green / red / yellow amber based on thé selected value of a field.

for example thé statut of an active projet, if i select « conform » i would like to display a green amber on thé column view. It will be more easy for the users to identify the projects statuts.

best regards,

  • Suggested answer
    Sanjaya Prakash Pradhan Profile Picture
    Sanjaya Prakash Pra... 2,745 User Group Leader on at
    RE: How to display green / red amber on field / column

    Hi Check the link below where the code snippets and methods are explained.

    https://softchief.com/2021/05/10/how-you-can-display-icons-on-views-in-dynamics-365-entities/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to display green / red amber on field / column

    Hi Benjamin43243,

    If you want to achieve it with javascript code, you can refer first link I provided above, which display custom icons in list views to specify different value of field.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/display-custom-icons-instead

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Torrado Profile Picture
    Torrado 1,270 on at
    RE: How to display green / red amber on field / column

    Hello Benjamin,

    PCF is not an external solution. It's an official framework created by Microsoft, and the way to go when it's about creating code components.

    Still, if you prefer a solution using only JavaScript, please check this official article: docs.microsoft.com/.../display-custom-icons-instead 

    It's describing how to achieve that.

    Hope this helps you.

    Please mark the answer as verified if helpful. That will help others in future.

  • Benjamin43243 Profile Picture
    Benjamin43243 25 on at
    RE: How to display green / red amber on field / column

    Hi Leah Ju, thanks you very much, unfortunately the customer doesnt want to use an external solution :/ and dont know how to achieve this with Javascript process.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to display green / red amber on field / column

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

     pastedimage1620268137451v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to display green / red amber on field / column

    Hi Benjamin43243:

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

    A control to show the Option Sets with the colors customized using the standard experience inside a grid.

    You can download zip file:Release Option 'NoText' (Icon without text) · 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.

    pastedimage1620267470803v1.png

    (2)Configure control in the view you need.(For example, i select priority optionset field in active case view to test)

    pastedimage1620267936614v3.png

    (3)Test

    pastedimage1620268104767v5.png

    Note: you need give optionset field value different color as your need.

    pastedimage1620268070023v4.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans