Highlight Details View Label Body & Table Value

How to highlight a details view label body to bring attention to a field

This will give greater visibility to a field that is important to understand at a glance such as a status field and adjusting the highlight color based on the current status.

In the Signs and Markings Tracker, Work Order Details page
In Parking Enterprise Portal, My Assignments page

The JS

This function allows us to identify the details view label body and set a background color value

This function allows us to identify a table field and set a background color value

We set variables for each combination of background and text colors we want based on field values

We create a handler that calls the function and sets a specified field to a specified variable

The CSS

None needed 😎

How to Implement

Adjust the hex colors for each color map variable

Adjust the Field ID for each handler

Last updated

Was this helpful?