|
2 | 2 | title: 'Fields' |
3 | 3 | description: 'This article discusses various field types that NocoDB offers.' |
4 | 4 | tags: ['Fields', 'Overview'] |
5 | | -keywords : ['NocoDB fields', 'fields overview', 'field administration', 'field organization'] |
| 5 | +keywords: ['NocoDB fields', 'fields overview', 'field administration', 'field organization'] |
6 | 6 | icon: "type" |
7 | 7 | --- |
8 | 8 |
|
| 9 | +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. |
9 | 10 |
|
10 | | -- [Primary Key](/docs/product-docs/fields/primary-key) |
11 | | -- [Display Value](/docs/product-docs/fields/display-value) |
12 | | - |
13 | | -### Text based |
14 | | -- [Single line text](/docs/product-docs/fields/field-types/text-based/single-line-text) |
15 | | -- [Long text](/docs/product-docs/fields/field-types/text-based/long-text) |
16 | | -- [Email](/docs/product-docs/fields/field-types/text-based/email) |
17 | | -- [Phone](/docs/product-docs/fields/field-types/text-based/phonenumber) |
18 | | -- [URL](/docs/product-docs/fields/field-types/text-based/url) |
19 | | - |
20 | | -### Numerical |
21 | | -- [Number](/docs/product-docs/fields/field-types/numerical/number) |
22 | | -- [Decimal](/docs/product-docs/fields/field-types/numerical/decimal) |
23 | | -- [Percentage](/docs/product-docs/fields/field-types/numerical/percent) |
24 | | -- [Currency](/docs/product-docs/fields/field-types/numerical/currency) |
25 | | - |
26 | | -### Date and time |
27 | | -- [Date](/docs/product-docs/fields/field-types/date-time-based/date) |
28 | | -- [Time](/docs/product-docs/fields/field-types/date-time-based/time) |
29 | | -- [Date and time](/docs/product-docs/fields/field-types/date-time-based/date-time) |
30 | | -- [Duration](/docs/product-docs/fields/field-types/date-time-based/duration) |
31 | | - |
32 | | -### Select based |
33 | | -- [Single select](/docs/product-docs/fields/field-types/select-based/single-select) |
34 | | -- [Multi select](/docs/product-docs/fields/field-types/select-based/multi-select) |
35 | | - |
36 | | -### Link based |
37 | | -- [Links](/docs/product-docs/fields/field-types/links-based/links) |
38 | | -- [Lookup](/docs/product-docs/fields/field-types/links-based/lookup) |
39 | | -- [Rollup](/docs/product-docs/fields/field-types/links-based/rollup) |
40 | | - |
41 | | -### Custom types |
42 | | -- [Attachment](/docs/product-docs/fields/field-types/custom-types/attachment) |
43 | | -- [Barcode](/docs/product-docs/fields/field-types/custom-types/barcode) |
44 | | -- [QR-code](/docs/product-docs/fields/field-types/custom-types/QR-code) |
45 | | -- [Geometry](/docs/product-docs/fields/field-types/custom-types/geometry) |
46 | | -- [Specific DB type](/docs/product-docs/fields/field-types/custom-types/specific-db-type) |
47 | | -- [JSON](/docs/product-docs/fields/field-types/custom-types/json) |
48 | | -- [Checkbox](/docs/product-docs/fields/field-types/custom-types/checkbox) |
49 | | -- [Rating](/docs/product-docs/fields/field-types/custom-types/rating) |
50 | | - |
51 | | -### Formula |
52 | | -- [Formula](/docs/product-docs/fields/field-types/formula/formula) |
53 | | - - [Operators](/docs/product-docs/fields/field-types/formula/operators) |
54 | | - - [Numeric Functions](/docs/product-docs/fields/field-types/formula/numeric-functions) |
55 | | - - [String Functions](/docs/product-docs/fields/field-types/formula/string-functions) |
56 | | - - [Date Functions](/docs/product-docs/fields/field-types/formula/date-functions) |
57 | | - - [Conditional Expressions](/docs/product-docs/fields/field-types/formula/conditional-expressions) |
| 11 | +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. |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +Among all fields in a table, two hold special significance: the **[primary key](/docs/product-docs/fields/primary-key)** and the **[display value](/docs/product-docs/fields/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. |
| 16 | + |
| 17 | + |
| 18 | +## Create a Field |
| 19 | + |
| 20 | +To add a new field to your table: |
| 21 | + |
| 22 | +1. Click on the ➕ icon in the table header where you'd like to insert the new field. |
| 23 | +2. In the **New Field** panel: |
| 24 | + * Enter the field name (optional at first). |
| 25 | + * Select the appropriate **field type** from the list (e.g., Single line text, Number, Lookup, etc.). |
| 26 | +3. Configure additional settings such as default value and description as needed. |
| 27 | +4. Click **Save Field** to finalize the creation. |
| 28 | + |
| 29 | +<div style={{ textAlign: 'center' }}> |
| 30 | + <img src="/img/v2/fields/create-field-1.png" alt="Create new field - select type" style={{ width: '90%', maxWidth: '800px' }} /> |
| 31 | +</div> |
| 32 | + |
| 33 | +<div style={{ textAlign: 'center', marginTop: '1rem' }}> |
| 34 | + <img src="/img/v2/fields/create-field-2.png" alt="Configure field details" style={{ width: '90%', maxWidth: '400px' }} /> |
| 35 | +</div> |
| 36 | + |
| 37 | +<Callout type="note">You can edit the field name, type, default value, or description anytime using the field’s context menu.</Callout> |
| 38 | + |
| 39 | +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. |
| 40 | + |
| 41 | +## Field Types |
| 42 | + |
| 43 | +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. |
| 44 | + |
| 45 | + |
| 46 | +| Field Type | Name | Description | |
| 47 | +|------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------| |
| 48 | +| **Text based** | [Single line text](https://nocodb.com/docs/product-docs/fields/field-types/text-based/single-line-text) | For short text entries like names or titles. | |
| 49 | +| | [Long text](https://nocodb.com/docs/product-docs/fields/field-types/text-based/long-text) | Suitable for paragraphs or detailed notes. | |
| 50 | +| | [Email](https://nocodb.com/docs/product-docs/fields/field-types/text-based/email) | Stores and validates email addresses. | |
| 51 | +| | [Phone](https://nocodb.com/docs/product-docs/fields/field-types/text-based/phonenumber) | For storing phone numbers. | |
| 52 | +| | [URL](https://nocodb.com/docs/product-docs/fields/field-types/text-based/url) | Stores website or web resource links. | |
| 53 | +| **Numerical** | [Number](https://nocodb.com/docs/product-docs/fields/field-types/numerical/number) | Whole numbers, positive or negative. | |
| 54 | +| | [Decimal](https://nocodb.com/docs/product-docs/fields/field-types/numerical/decimal) | Numbers with decimal precision. | |
| 55 | +| | [Percentage](https://nocodb.com/docs/product-docs/fields/field-types/numerical/percent) | Represents numeric values as percentages. | |
| 56 | +| | [Currency](https://nocodb.com/docs/product-docs/fields/field-types/numerical/currency) | Stores monetary values with currency symbol. | |
| 57 | +| **Date & Time** | [Date](https://nocodb.com/docs/product-docs/fields/field-types/date-time-based/date) | Captures calendar dates. | |
| 58 | +| | [Time](https://nocodb.com/docs/product-docs/fields/field-types/date-time-based/time) | Stores time of day. | |
| 59 | +| | [Date and time](https://nocodb.com/docs/product-docs/fields/field-types/date-time-based/date-time) | Stores both date and time in one field. | |
| 60 | +| | [Duration](https://nocodb.com/docs/product-docs/fields/field-types/date-time-based/duration) | Measures length of time (e.g., hours or days). | |
| 61 | +| **Select based** | [Single select](https://nocodb.com/docs/product-docs/fields/field-types/select-based/single-select) | Allows choosing one option from a list. | |
| 62 | +| | [Multi select](https://nocodb.com/docs/product-docs/fields/field-types/select-based/multi-select) | Allows selecting multiple options from a list. | |
| 63 | +| **Link based** | [Links](https://nocodb.com/docs/product-docs/fields/field-types/links-based/links) | Creates relationships between tables. | |
| 64 | +| | [Lookup](https://nocodb.com/docs/product-docs/fields/field-types/links-based/lookup) | Pulls data from linked records. | |
| 65 | +| | [Rollup](https://nocodb.com/docs/product-docs/fields/field-types/links-based/rollup) | Aggregates values from related records. | |
| 66 | +| **Custom types** | [Attachment](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/attachment) | Upload and store files or images. | |
| 67 | +| | [Barcode](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/barcode) | Stores and displays barcodes. | |
| 68 | +| | [QR-code](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/QR-code) | Stores and displays QR codes. | |
| 69 | +| | [Geometry](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/geometry) | For geographic or spatial data. | |
| 70 | +| | [Specific DB type](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/specific-db-type) | Maps directly to native DB field types. | |
| 71 | +| | [JSON](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/json) | Stores structured data in JSON format. | |
| 72 | +| | [Checkbox](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/checkbox) | Boolean toggle for true/false values. | |
| 73 | +| | [Rating](https://nocodb.com/docs/product-docs/fields/field-types/custom-types/rating) | Displays star-based or numeric rating. | |
| 74 | +| **Formula** | [Formula](https://nocodb.com/docs/product-docs/fields/field-types/formula/formula) | Computes values using expressions based on other fields. | |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## Field Actions |
| 79 | + |
| 80 | +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: |
| 81 | + |
| 82 | +* [Rename a field](/docs/product-docs/fields/actions-on-field#rename-field) |
| 83 | +* [Change field type](/docs/product-docs/fields/actions-on-field#change-field-type) |
| 84 | +* [Set default value](/docs/product-docs/fields/actions-on-field#change-default-value) |
| 85 | +* [Adjust field width](/docs/product-docs/fields/actions-on-field#change-field-width) |
| 86 | +* [Hide or unhide fields](/docs/product-docs/fields/actions-on-field#hide-field) |
| 87 | +* [Set as display value](/docs/product-docs/fields/actions-on-field#set-as-display-value) |
| 88 | +* [Sort by field (ascending/descending)](/docs/product-docs/fields/actions-on-field#sort-ascending) |
| 89 | +* [Duplicate a field](/docs/product-docs/fields/actions-on-field#duplicate-field) |
| 90 | +* [Insert new field before or after](/docs/product-docs/fields/actions-on-field#insert-before-a-field) |
| 91 | +* [Delete a field](/docs/product-docs/fields/actions-on-field#delete-field) |
| 92 | +* [Add or edit field description](/docs/product-docs/fields/actions-on-field#add--edit-field-description) |
| 93 | + |
| 94 | +For step-by-step instructions and visuals, refer to the full guide on [Actions on Field](/docs/product-docs/fields/actions-on-field). |
| 95 | + |
| 96 | +--- |
58 | 97 |
|
0 commit comments