Background Color of a field (if it is not empty or null)

Hello everybody,
i’m trying to edit the layout of my Accounts DetailView page.
I have to set the red background of a single field, only if this field is not empty or null.
I’m trying to looking for that solution in any forums but i didn’t found anyhing.
Maybe someone of you guys can help me.
:cheer: :cheer:
Thank you so much!

This can’t be done out-of-the-box.

I believe there is an add on for this, search the SuiteCRM Store.

If you are a PHP developer, or can get one, you can do this easily by overriding the display method of the view where you want this done.

Here is an example of a similar thing:

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/15154-is-there-logic-hook-for-detailsview#50990

I think you can add your colouring HTML when assigning the value to the field, at this point:

$this->ss->assign(“CURRENTAGE”, $current_age);