Font Size:
Ask Joget AI

Conditions

Introduction

Conditions change how a row looks when its values meet a rule: an overdue request striped red, a done one with its title muted, a canceled one struck through and no longer selectable. You write the rules by choosing a column, an operator, and a value, with no code.

A condition can color the whole row, change one of its slots (its color, bold, muted, struck through, or hidden), give a timeline entry its own marker, and stop a row from being selected or edited. Conditions are part of List Studio, and are set in the List Builder's Layout view.

The Conditions panel

In Layout, click Conditions in the toolbar. Its badge shows how many conditions the template has. The panel opens on the right, in the property panel's place. The palette folds away, and the canvas is drawn smaller beside the panel, showing the row in its conditions as the running list will. Drag the panel's left edge to make it wider. Click Conditions again, or the panel's ×, to close it.

At the top is the list of conditions:

  • Click a condition to edit it. Point at it to show its ▲ and ▼, which move it up and down, and its bin, which deletes it.
  • + Add a condition adds one, named New condition, in the next color.
  • When several apply, the higher one wins: a row can meet several conditions at once. For each thing a condition changes (the row's color, a slot's color, a slot's look), the first condition in the list that changes it decides.

Under the list, the chosen condition has:

  • Its name, in the box at the top, as the list and Problems show it.
  • CSS hook: the selector that matches the rows in this condition, for Custom CSS, with a button to copy it (see Styling a condition in Custom CSS).
  • Its color, in the row of swatches. Accent is the template's accent, which follows its look; then eight colors (blue, green, amber, red, violet, gray, teal, pink), and a last swatch for a color of your own.
  • When: its rules.
  • Then: what it changes.

When: the rules

Each rule is a Column, an operator, and a value. A second rule starts with and or or. As in Joget's own visibility rules, and binds tighter than or: A or B and C reads as A or (B and C).

  • + Add a rule adds a rule.
  • + Add a group adds rules that count as one, as brackets do: (A or B) and C. The group is marked Together, and + Add a rule here adds a rule to it. Groups don't nest.
  • The × after a rule removes it.

The operators come in groups:

Group Operators
Text is, is not, is one of, is not one of, contains, doesn't contain
Number is more than, is at least, is less than, is at most
Any is empty, is not empty
Date is before today, is today, is after today, is in the next … days, is in the last … days, is before, is after
Pattern matches the pattern, doesn't match the pattern

How values are compared:

  • Text: case and the spaces at either end don't matter, so done matches Done. is one of; takes several values separated by semicolons: Done; Cancelled.
  • Numbers: read as the template's Numbers in the data setting says, with a decimal point (14,800.50) or a decimal comma (14.800,50). A % is ignored. A value that isn't a number never matches.
  • Dates: a value that starts with a date as yyyy-MM-dd, or one in the app's date format. Today is the day of the person viewing the list. is in the next … days counts from today to that many days ahead, today included; is in the last … days counts back. is before and is after take a date, such as 2026-10-31.
  • Patterns: a regular expression that must match the whole value. It is case-sensitive; start it with (?i) to ignore case, for example (?i)hard.*|network.

Most operators can compare with another column in the same row instead of a value. Click the button before the value to switch: for example, Paid is less than Amount, or Paid on is after Due date.

A rule on a column the row doesn't have never applies, whatever its operator.

Stored and Shown

The Column menu has two groups:

  • Stored: the list's columns, as their label and name, for example Due (due). A rule tests the value as it is stored.
  • Shown: the slots whose column has a formatter, named by their kind and name, for example Stat · change. A rule tests the text the slot shows, which the formatter worked out. Use it for a value that isn't stored at all, such as a change that the Rollup formatter works out from linked records.

A rule on a shown value follows its slot when the slot is renamed. If the column loses its formatter, the rule shows (not computed); if the slot is deleted, (removed). Either way, the condition no longer applies, and Problems says so.

Hash variables in values

A value can hold a hash variable, filled in for each person when the list runs: for example Owner is #currentUser.username#, to color the rows that are yours. The canvas can't fill it in, so it draws the row as if the rule didn't apply; the value's tooltip says Filled in for each user when the list runs.

Then: what a condition changes

  • Color the record: the row takes the condition's color, shown as Record color sets at the foot of the panel (see Record color). On a timeline, it reads Color the record and its timeline marker. It can be ticked only when Record color comes from conditions.
  • Marker icon: on a timeline, the icon in the entry's marker instead of a dot: None (a dot), or an icon such as clock, flag, check, ban or hourglass-half.
  • Can't be selected: the row's checkbox is disabled, so bulk actions cannot select it. Its tooltip names the condition.
  • Can't be edited: none of the row's slots can be changed in the list. It shows only when a slot of the design has Change it in the list ticked in its Editing section, and it is checked again when a change is saved. See List Studio Editing in the List.
  • + Change a slot: changes one slot of the row. Pick the slot, then:
    • Color: Same color, Accent, one of the eight colors, or one of your own. A Badge's pill takes the color.
    • Look: Same look, Bold, Muted, Struck through, or Hidden. A hidden slot is left out of the row; in a table, its cell stays empty.
    • Can't be edited: for a slot that can be changed in the list, only that slot can't be.

Record color

The foot of the panel sets how a row shows its color, for every condition:

  • Record color: None, Stripe (a bar down the row's edge), Top edge, Tint (a light background), or Stripe and tint. On a timeline, Marker colors the entry's marker on the line.
  • The menu beside it says where the color comes from: from conditions, the first condition the row meets that has Color the record ticked; or a Badge slot, such as from the Status badge, the color of the badge's value, as its Colors set it.

When you add a template's first condition, and Record color isn't set yet, it becomes Stripe from conditions.

On a slot's Style page

When you select a slot on the canvas, its Style page lists the conditions that change it, after Changes when. Click one to open it in the Conditions panel. A slot that no condition changes has Change it in a condition instead, which opens the panel.

Styling a condition in Custom CSS

Each row carries the IDs of the conditions it meets, in data-dtb-is. The condition's CSS hook is the selector for it, for example [data-dtb-is~="overdue"]. The ID follows the condition's name until the template's Custom CSS uses it; from then on, it stays when the name changes. A colored row also has data-dtb-tone, set to its color's name, accent or custom.

[data-dtb-is~="overdue"] [data-dtb-slot="title"] { text-decoration: underline; }

See List Studio Styling for Custom CSS and its other hooks.

Tips and limitations

  • The canvas draws one row of the sample data, and the next ones faded under it. The ‹ and › after Row 1 of 10, at the canvas's top right, step through the rows to see each in its conditions.
  • Conditions change how rows look. They don't hide rows or change who can see them: use the list's filters for that.
  • Problems list conditions that can never apply or change nothing: a rule with no column, a pattern that isn't valid, a column the sample data doesn't have, a slot that is gone, a color of your own that is hard to read on white.
  • The eight colors are made to be read on white. Check a color of your own against the row's background, or the Dark look's.
  • A pattern is tried on the first 10,000 characters of a value. A pattern that takes too long gives up, and its rule doesn't hold.
  • A template keeps up to 50 conditions, each with up to 20 rules.

Related documentation

Created by Damien Ng Last modified by Debanraj Ravindran on Nov 26, 2026