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

# Columns

> Add columns to a table, choose their type and set how they behave.

Columns are the fields of a table. You manage them in the **Columns** tab of the [table form](../create-a-table/).

## Add a column

1. Open the settings of the table.
2. In the **Columns** tab, click **Add**.
3. Choose the **Type**, for example **Number** or **Dropdown**. All the types are in [Column types](../../reference/column-types/).
4. Enter the **Name**.
5. Click **SUBMIT** in the column window, then **SUBMIT** in the table form.

![The column form of a Number column](/files/Jasskd2Dv60f.webp)

Each column gets an ID such as `x01`, `x02` and so on. This ID is the name of the column in PostgreSQL and in the [API](../../reference/api/). Keep the generated ID.

## Common options

- **Required**: the record cannot be saved without a value.
- **Read-only on user interface**: the value is shown but cannot be changed in the form.
- **Hide on user interface**: the column is not shown.
- **The user must enter a note when changing the value**: in a table with [versioning](../versions/), Tables asks for a note when someone changes this value. The note appears in the **Changelog** column of the versions.
- **Allow cloning**: the value is copied when a record is cloned.
- **Allow auto-complete**: for text columns, the form suggests values already used in the table.
- **Help message**: a text shown under the field in the record detail.
- **Note**: an internal note for you, shown in the list of columns.
- **Error message**: the message shown when the value is invalid.
- **Default value**: the value of a new record, written as a JavaScript expression, for example `'Spain'` or `0`.
- **Group**: puts columns under a common heading in the form.

## Formatting

In the **Formatting** tab of the column window:

- **Format** adds text around the value. `{0}` is the value, so `{0} EUR` shows `250,00 EUR`.
- **Decimals** sets the decimal places of numbers.
- **Align**, **Listing width**, **Use monospace font**, **Color** and **Icon** change how the value looks.
- **Transform** changes text to lower case, upper case or capitalized words when the record is saved.
- **Dynamic formatting** colors the value when a condition is true. See [Conditional formatting](../conditional-formatting/).

## Where the column appears

In the **Viewing** tab, **Show the column** decides where the column appears: in the listing, in the detail, in linked listings and details, and in the print.

## Order of the columns

Drag the columns in the **Columns** tab to change their order in the form. The order in the list of records is set in the **Listing** tab; see [Table settings](../table-settings/).

## Change or remove a column

Click a column to change it. The type can only be changed to a type that stores the same kind of data, for example from **Text** to **Email**. Click the trash icon to remove a column. Removing a column removes its data from the database when you submit the table form.
