---
title: Conditional formatting
project: Tables
version: 7.0
section: guides
language: en
translation: missing
license: Total.js Enterprise
url: https://totaljs.es/docs/fr/tables/7-0/guides/conditional-formatting/
updated: 2026-11-20T06:39:57.622Z
---

# Conditional formatting

> Color rows or values in the list of records when a condition is true.

Conditional formatting highlights records, for example large orders or new orders. A rule has a condition and a style.

## Format whole rows

1. Open the settings of the table and go to the **Formatting** tab.
2. Click **Add**.
3. Enter an **Internal description**, for example `Large order`.
4. Enter the **Condition** in JavaScript. `row` is the record and its columns use their IDs, for example `row.x04 > 1000`.
5. Choose a **Font color**, a **Background color**, and **Bold**, **Italic**, **Underline** or **Strike**.
6. Click **Save**, then **SUBMIT**.

## Format one value

1. Open the column in the **Columns** tab.
2. In the **Formatting** tab of the column window, find **Dynamic formatting** and click **Add**.
3. Enter the description, the condition and the style. **Replace the value with text** shows a text instead of the value.
4. Click **Save**, then **SUBMIT** in both forms.

In this list, the order of *Office chairs* is bold because its amount is over 1000, and the status **New** is red:

![The list of orders with a bold row and red statuses](/files/Jasskh2Gv61f.webp)

## Write conditions

- Compare numbers: `row.x04 > 1000`
- Compare a Dropdown value with its ID: `row.x05 === 'new'`
- Combine conditions: `row.x04 > 100 && row.x05 === 'new'`

The ID of each column is shown next to its name in the **Columns** tab.
