Fields

Fields set the structure and the data type of each record in a table. Fields control how you enter data and how NocoDB shows and reads it. Use fields to store names, numbers, dates, selections, or calculated values.

This section describes the field types, their settings, and how to select the correct field type for your use case. When you know how fields work, you can design better tables and keep your data consistent across your workspace.

image

Two fields in a table are special: the primary key and the display value.

FieldWhat it isUnique
primary keyA technical identifier for each record. NocoDB uses it for backend operations such as updates and deletions, and to keep data integrity. It is usually hidden from end users.Always
display valueA label that people can read, such as a name or a title. The interface uses it to help users find and link records.Recommended, but not enforced

The primary key keeps record management consistent. The display value makes records easier to identify.

Ask NocoAI

Copy a prompt, paste it into NocoAI in any base, and replace the words in [brackets] with your own.

  • Add a [Priority] field with the options [High, Medium and Low]
  • Suggest fields that are missing from this table
  • Add [an Owner user field and a Due Date field] to this table
  • Change [Notes] to a long text field

Create a Field

To add a field to your table:

  1. In the table header, click the ➕ icon where you want the new field.
  2. In the New Field panel:
    • Enter the field name (optional at first).
    • Select the field type from the list (for example, Single line text, Number, or Lookup).
  3. Set other settings, such as the default value and the description, if necessary.
  4. To make the values unique, select Unique values only. Only some field types support this. For more details, refer to Unique Fields.
  5. Click Save Field.
Create new field - select type
Configure field details
You can edit the field name, type, default value, or description at any time from the field’s context menu.

Some field types need more settings, such as allowed values, precision, formulas, or linked table settings. For details, refer to the page for each field type.

Field Default Value

You can set a default value when you create a field. NocoDB adds this value to new records that you create after you set it. It does not change existing records.

Default typeExamples
Fixed value"N/A", "Unknown"
Dynamic value (some field types only)The current date, time, or user ID

To set a default value, refer to Set default value.

Field Description

Field description

A field description gives context and guidance to the users of the table. This helps when many users work on the same data. A description can tell the purpose of the field, the expected values, or instructions for data entry.

The description shows as a tooltip when you hover over the i icon next to the field name in the table header. For more details, refer to Add/Edit Field Description.

You can also search for fields by name or by description. This helps you find a field quickly, especially in a large table with many columns.

Field search

Field Types

NocoDB has many field types, from basic text and number fields to linked records, formulas, and custom types. Each field type has a specific purpose. The table below lists all field types with a short description, to help you select the correct one.

Field TypeNameDescription
Text basedSingle line textFor short text entries like names or titles.
Long textSuitable for paragraphs or detailed notes.
Rich textLong text with inline formatting and markdown shortcuts.
Smart textDocument-style cell editor with blocks, tables, and embeds.
EmailStores and validates email addresses.
PhoneFor storing phone numbers.
URLStores website or web resource links.
NumericalNumberWhole numbers, positive or negative.
DecimalNumbers with decimal precision.
PercentageRepresents numeric values as percentages.
CurrencyStores monetary values with currency symbol.
Date & TimeDateCaptures calendar dates.
TimeStores time of day.
Date and timeStores both date and time in one field.
DurationMeasures length of time (for example, hours or days).
Select basedSingle selectAllows choosing one option from a list.
Multi selectAllows selecting multiple options from a list.
Link basedLinksCreates relationships between tables.
LookupPulls data from linked records.
RollupAggregates values from related records.
Custom typesAttachmentUpload and store files or images.
BarcodeStores and displays barcodes.
QR-codeStores and displays QR codes.
GeometryFor geographic or spatial data.
GeoDataStores latitude and longitude coordinates.
JSONStores structured data in JSON format.
CheckboxBoolean toggle for true/false values.
RatingDisplays star-based or numeric rating.
ColourDisplays colour swatch & corresponding Hex code.
IdentifierUUIDAuto-generates globally unique identifiers (UUID v4).
Auto NumberAuto-generates sequential numbers for each record.
FormulaFormulaComputes values using expressions based on other fields.

Unique Fields ☁

Unique fields are available on NocoDB Cloud (Business plan and above) and licensed self-hosted deployments (Business plan and above).

You can make some field types in NocoDB unique. Then no two records can have the same non-empty value in that field. Use this for email addresses, usernames, or other identifiers that must be different in each record.

In a unique field, empty cells are allowed, but duplicate non-empty values are not. To make a field unique, select Unique values only in the field settings when you create or edit the field. NocoDB then checks all new entries and updates against the uniqueness constraint.

Unique field setting

If a user enters a duplicate value in a unique field, NocoDB shows an error message. NocoDB does not save the record until the user enters a unique value.

These field types support uniqueness:

  • Single line text
  • Email
  • Phone number
  • URL
  • Number
  • Decimal
  • Currency
  • Percent
  • DateTime
  • Date
  • Time
  • Uniqueness can make large datasets slower. Turn on this option only when your application needs it.
  • Uniqueness constraints work only for tables created in NocoDB (NC-DB). NocoDB cannot add uniqueness constraints to fields from external database tables.
  • To change an existing field to a unique field, all its existing values must already be unique. If they are not, the change fails.
  • A field cannot have both a default value and a uniqueness constraint. A unique field cannot have a default value.
  • Unique fields allow empty values. Empty values do not break the uniqueness constraint.

Field Actions

You can also do actions on a field to change how it works and how it looks in your table. These actions are in the field’s context menu and the toolbar menu:

For step-by-step instructions and images, refer to Actions on Field.

Last updated on

Latest product updates?See Changelog
Stay in the loop? Follow us onLinkedInLinkedInYouTubeYouTubeXX