Fields

This article discusses various field types that NocoDB offers.

Fields define the structure and type of data stored in each record of a table. They are the building blocks of your database, determining how information is entered, displayed, and interpreted. Whether you're capturing names, numbers, dates, selections, or calculated values—fields provide the necessary flexibility to model your data accurately.

This section will guide you through the different types of fields available, their configurations, and best practices for choosing the right field type based on your use case. By understanding how fields work, you can design more effective tables and ensure consistent, meaningful data across your workspace.

image

Among all fields in a table, two hold special significance: the primary key and the display value. The primary key is a technical identifier that uniquely distinguishes each record and is essential for backend operations like updates, deletions, and maintaining data integrity. It is always unique and typically hidden from end users. On the other hand, the display value is a human-readable label—such as a name or title—used in the interface to help users quickly identify and associate records. While it’s recommended to use a field with unique values as the display value, strict uniqueness is not enforced. In essence, the primary key ensures consistent record management, while the display value improves usability and context.

Create a Field

To add a new field to your table:

  1. Click on the ➕ icon in the table header where you'd like to insert the new field.
  2. In the New Field panel:
    • Enter the field name (optional at first).
    • Select the appropriate field type from the list (e.g., Single line text, Number, Lookup, etc.).
  3. Configure additional settings such as default value and description as needed.
  4. Click Save Field to finalize the creation.
Create new field - select type
Configure field details
You can edit the field name, type, default value, or description anytime using the field’s context menu.

Depending on the field type selected, additional options or configurations may be required—such as allowed values, precision, formulas, or linked table settings. Refer to the documentation for each field type for detailed guidance.

Field Default Value

You can set a default value when creating a field. This value is automatically applied to new records created after the field is set. It does not affect existing records. The default can be a fixed value (e.g., "N/A", "Unknown") or, for some field types, a dynamic value such as the current date, time, or user ID. Refer Set default value for more details on how to configure default values.

Field Description

Field description

Adding a description to a field provides context and guidance for users interacting with the table. This is especially useful in collaborative environments where multiple users may access the same data. The description can include details about the field's purpose, expected values, or any specific instructions for data entry. It appears as a tooltip when users hover over 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 using their names or descriptions. This helps quickly locate specific fields, especially in larger tables with many columns.

Field search

Field Types

NocoDB offers a wide range of field types to help you structure your data effectively. From basic text and numeric fields to more advanced options like linked records, formulas, and custom types, each field serves a specific purpose. The table below provides an overview of all available field types along with brief descriptions to help you choose the right one for your use case.

Field TypeNameDescription
Text basedSingle line textFor short text entries like names or titles.
Long textSuitable for paragraphs or detailed notes.
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 (e.g., 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.
Specific DB typeMaps directly to native DB field types.
JSONStores structured data in JSON format.
CheckboxBoolean toggle for true/false values.
RatingDisplays star-based or numeric rating.
FormulaFormulaComputes values using expressions based on other fields.

Field Actions

Beyond selecting the right field type, you can also perform various actions to customize how fields behave and appear in your tables. These actions are accessible from the field’s context menu & toolbar menu and include:

For step-by-step instructions and visuals, refer to the full guide on Actions on Field.