# Conditional Highlight Colors

Conditional Highlights can allow you to change the of a field based on various conditions. Such as field values, logged-in user parameters and more.

They can be used in Highlight Sections on [Record Pages](/data-to-app.md#row-record-page).

<figure><img src="/files/dxbIyrjBZNZlScQFytW3" alt=""><figcaption></figcaption></figure>

### **Setting Up Conditional Highlights**

To configure conditional highlights for a field, follow these steps:

1. Navigate to the field's configuration settings within the Highlights section.
2. Activate the option "Highlight this field based on conditions."
3. You will be presented with a blank condition setup. Here, you can define the conditions under which the field should be highlighted, including choosing specific colors for different scenarios.

<figure><img src="/files/L8YUbEoFIv6LT3CYke3H" alt=""><figcaption></figcaption></figure>

### **Defining Conditions:**

* **Select the Field**: Choose the field you wish to apply conditional highlighting to
* **Choose an Operator**: Select the logical operator that will determine how the field value is evaluated (e.g., greater than, less than, equal to)
* **Specify a Value**: If required, specify the value that will trigger the highlighting

<figure><img src="/files/v1thq6B7RUELVOfrAWE3" alt=""><figcaption></figcaption></figure>

For example, the rule below would conditionally highlight the cell. If the value of the "Leads" field, *is more than* 20

<div data-full-width="false"><figure><img src="/files/YubWsKikAqdyZ79silDA" alt="" width="367"><figcaption></figcaption></figure></div>

<figure><img src="/files/hZKagCkGfOownZS8fOMb" alt=""><figcaption></figcaption></figure>

### Multiple Highlight Conditions

You are not limited to just adding one rule on a condition. It is possible to apply multiple rules to a single field. Furthermore, leveraging "AND" and "OR" logical operators to enable complex conditions.

For example, you can change the color of a cell based on a field's value and also the *logged in user's role*. With the below conditions, the cell will only be highlighted *"Red"*, when the value of the "Leads" field *is less than 20* AND the *logged in User is internal*.

<figure><img src="/files/QI4ewNvmFzY2pIkYG13d" alt="" width="346"><figcaption></figcaption></figure>

Extending our example above, we can add more conditions to make the cell a different color. The cell will be highlighted "Red" if the "Leads" field *is less than or equal to* 20

<figure><img src="/files/r5zmYxIn4VPRGhWFrdNr" alt="" width="344"><figcaption></figcaption></figure>

It will turn "Orange" if the field *is greater than* 20 AND *less than or equal to* 60.

<figure><img src="/files/ghIfpz0pWV4Jq13JgyoK" alt="" width="334"><figcaption></figcaption></figure>

Finally, it will be "Green", if the value of the field *is greater than* 60.

<figure><img src="/files/lWCMZ32pXYYXeC7wNs4j" alt="" width="335"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.noloco.io/field-formatting/conditional-highlight-colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
