Use case: When the Status is Overdue, the word overdue should display in red, and if it's Accepted, it should display as green.

I was hoping to use Rules to set this up, but don't see options to get this logic in.

Screen Capture

Comments

noita’s picture

I would like to know if you have create your own module but :

If it's not your own module, you can use rules to change color after event but i'm not sure that the right way to do that because you add some treatment to your website.

If it's your module, i preconize you to template your element by a class in your render array to change color at the render of your table.

I don't know color field but i'm not sure that's really helpful to use an extra module just to cahnge color of one field.

But with this explanation, we don't have some elements to help you.

yoftahe.addweb’s picture

If you can get staus value from field then you can overwrite field value by
"Rewrite results" -> "Rewrite the output of this field" and add some code like
<div class="[field_status]">[field_status]</div>
to update field value for displaying.
Now you will have to set css to show it red or green.

Hope this helps!