Skip to content

The single line text field

Plain text on one line: what it stores, the require-unique option, how it edits, filters and sorts, the API shape, and when long text is the better choice.

Updated November 2026

A single line text field holds one line of plain text. Use it for names, order codes, SKUs, cities, titles and anything else short enough to read whole in a cell. Both example tables in this guide come from a small plant shop's database, where "Monstera deliciosa" is a value in Name, a single line text field on the Plants table.

The field stores what you type, character for character, with no trimming, no change of case and no interpretation. The one exception is a line break, which a single line field can't hold, so a newline pasted or typed into the cell is collapsed to a space.

Adding a single line text field: the type selected in the picker, with the Require unique values toggle in the settings pane.

Create it

Click + at the end of the grid header (or click a field's header and choose Insert right). Single line text is already selected, since it's the default type. It has one option:

  • Require unique values: no two records may share a value in this field. This is enforced by the database itself, not by a warning. You can switch it on when you create the field or later in Edit field…. While two records already share a value, switching it on is refused, with a count. Writing a duplicate is refused with a message that names the value: "SKU" must be unique — "A-1" already exists. Require unique values has the details.

Editing

Click a cell and type. Typing replaces the value, Enter commits it and moves down, and Escape cancels. In the record panel the field is an ordinary text box. At the Short row height the grid shows one line and truncates the rest, and from Medium up, long values wrap.

Search covers text fields, and this type can be the table's display field, as the first field of a new table usually is.

Filtering and sorting

The filter operators are is, is not, contains, doesn't contain, is empty and isn't empty. contains is case-insensitive. Sorting is alphabetical, and an ascending sort puts empty cells last.

An empty text cell can be stored as nothing at all or as an empty string, depending on how it was cleared. You will never see the difference, because is empty catches both and both read as blank.

Over the API

A text cell is a JSON string:

{ "fields": { "Name": "Monstera deliciosa" } }

Write it with a string and clear it with null. A number sent to a text field is refused with Field "Name" expects text. The API does not convert it for you. Reading an empty cell returns null or "" (the two ways an empty cell can be stored, described above), so treat the two the same, as Tabla's own filters do. Writing records over the API has the full rules for writes.

When to use long text instead

Use long text when the value is prose, such as notes, descriptions or anything else you'd write in sentences. Long text holds line breaks and can have rich formatting turned on. The two types share the same storage, so converting between them later is free in both directions, and nothing is truncated either way.

Two kinds of value don't belong in a plain text field at all. Numbers you'll sum or compare belong in a number field, because text sorts 10 before 9. Emails, phone numbers, and URLs have their own types, which keep the value clickable. Phone numbers in particular are not numbers, and a number field would drop the leading zero.

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