# Field value

You can assign fields from your dataset and apply conditional formatting based on the specified color. Let's consider a Benchmark dataset - each benchmark is represented by a designated color which is part of the source data.

<figure><img src="/files/yjG0IyxUf1eo5AmT6ONX" alt=""><figcaption><p>Dataset with colors assigned</p></figcaption></figure>

Let's look at how to setup conditional formatting based on a field from your data source.

Assign the text column containing the color scheme to the Writeback Matrix visual. You'll see a **Field value** option in the **Format by** dropdown.

Select the text field that will be used to assign colors from the **Based on** dropdown.

<figure><img src="/files/LvloRnNONHydImZBZbu8" alt=""><figcaption><p>Select the field that will be used to drive the color scheme</p></figcaption></figure>

**Format font color**

The font color for the Actuals measure is changed based on the Benchmark indentifier text field. To apply conditioinal formatting on the font color, select the **Font** option from the **Color for** dropdown.

<figure><img src="/files/pDbsu9ymiLdCHK1sdTbY" alt=""><figcaption><p>Set the font color from the data source</p></figcaption></figure>

**Format background color**

To change the cell background color select **Background** from the **Color for** dropdown.

<figure><img src="/files/z2xSP8qNMBncDhpVOpkR" alt=""><figcaption><p>Apply cell background color from a source field</p></figcaption></figure>

**Using Auto font color**

When the **Auto font color** option is checked, Inforiver assigns a font color which will have maximum visibility against the backgroun color.

Uncheck this option to assign a custom font color from the **Format** menu.

<figure><img src="/files/knjpaUkR8MKgLSaI9L06" alt=""><figcaption><p>Custom font color</p></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://docs.inforiver.com/working-with-inforiver/5.-conditional-formatting/create-rule-reporting-matrix/field-value.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.
