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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to display green / red amber on field / column

(0) ShareShare
ReportReport
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,

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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.

  • Benjamin43243 Profile Picture
    25 on at

    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.

  • Suggested answer
    Torrado Profile Picture
    1,270 on at

    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.

  • Community Member Profile Picture
    on at

    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
    Sanjaya Prakash Pradhan Profile Picture
    2,745 User Group Leader on at

    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/

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans