function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mlundwallmlundwall 

conditional color coding in lists

Hi,

 

Is there a way to have different colors for different rows in lists, depending on field values on the object?

 

example:

 

A list of cases with different priority. All rows with cases that have priority set to high have a red background.

 

Regards

/martin

Ankit AroraAnkit Arora

I hope you are displaying this list on visualforce page. Then you can use (style="color:red") in outPutLabel. Also to render this color conditionally then you can use <apex:outPutLabel style="{!IF(Your_value == 'High' , 'color:red' , '' )}"  value="Value"/>

 

If this is not clear then you can send in the code here. Hope we can modify your code accordingly.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

mlundwallmlundwall

Unfortunatly I am not using a VirualForce page, (atleast not that I know). From what I know it is a/the standard list view for Cases.

Can I convert the page to a visualforce view?

Ankit AroraAnkit Arora

I don't think you can get different color out there on native screen.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

mlundwallmlundwall

That's a shame.

 

Is there any way to convert the native screen to VisualForce?

Or do we have to write it from scratch?