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,
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/
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.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
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.
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.
Hi Partner,
Has the problem been solved? Any updates?
Please click Yes under "Did this answer your question?" to close this thread.
Thanks.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
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.
(2)Configure control in the view you need.(For example, i select priority optionset field in active case view to test)
(3)Test
Note: you need give optionset field value different color as your need.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156