Skip to content

The checkbox field

On or off, one click: the eight icons and their colors, why filtering for unchecked also catches never-set cells, and the true/false API shape.

Updated November 2026

A checkbox is either on or off. It suits a fact with two states, like paid, confirmed or pet-safe. In the demo plant shop, Paid on Orders and VIP on Customers are checkboxes.

Clicking the cell toggles it. No editor opens, and there is nothing to commit. In the record panel it's the same one-click toggle.

Editing the VIP checkbox field: the eight icon buttons and the Checked and Unchecked color rows in the field editor.

The options

  • Icon: eight to pick from (check, cross, square, circle, star, heart, diamond and flag). Each has a filled form for checked and an outline form for unchecked.
  • Checked: the color of the checked icon. It's green by default, or any of the twelve pigment colors.
  • Unchecked: the color of the unchecked icon. It's gray by default, or a pigment if you want off to stand out too.

A flag that turns red when checked takes two clicks to set up, and you can pick it out across a grid at a glance.

Unchecked and never set

Underneath, a cell can hold true, false, or nothing at all. A record created over the API with the field omitted holds nothing, and its cell is drawn the same as an unchecked one. Filtering is the one place where that could cause trouble, so there Tabla counts the two as the same thing.

A checkbox has a single filter operator, is, with two values, checked or unchecked. Unchecked matches both the cells that were explicitly turned off and the ones that were never set. A filter for "everything not paid" finds every record that isn't checked, and none is left out for being in a third state. There is no filter that tells false from empty.

Summaries follow the same rule. The footer offers Checked, Unchecked, and Percent filled counts.

Sorting, display field and unique values

An ascending sort puts explicitly unchecked cells first, checked cells after them, and never-set cells at the very end. Sorting is the one place where false and empty are treated differently. A checkbox can't be the table's display field, since a check mark can't name a record. It also can't require unique values, because with two possible values that would limit the table to two records.

Over the API

A checkbox cell is a JSON boolean:

{ "fields": { "Paid": true } }

Reads return true, false, or null (never set). Writes accept only true or false. Values like "yes" and 1 are refused with Field "Paid" expects true or false. Clear with null. Pasting in the grid is looser (yes, 1, ✓ and their opposites are all understood), but the API is not.

Filtering over the API uses the same single operator. {"field": "Paid", "op": "is", "value": false} returns the unpaid records. In the demo that is nine, with false and never-set counted alike.

When it's the wrong field

When a two-state fact gets a third state, switch to a select and stop adding checkboxes. "Draft / Sent / Paid" is one select, not two checkboxes that can end up in an impossible combination. If what you want to know is when something happened, store a date field ("Paid on"). An empty date means not yet, and a filled one tells you more than a check mark can. And if the flag should follow from other fields, use a formula.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides