Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions content/docs/fields/field-types/text-based/single-line-text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ tags: ['Fields', 'Field types', 'Text based types', 'Single line text']
keywords: ['Fields', 'Field types', 'Text based types', 'Single line text', 'Create single line text field']
---

The **Single line text** field is used to store short, freeform text values. It is suitable for entries like names, titles, tags, or labels. This is the most commonly used field type for capturing simple text in a structured format. For storing longer text or multiple lines, consider using the [Long text](/docs/product-docs/fields/field-types/text-based/long-text) field instead.

`Single line text` field is a simple text based field. It can hold any text value. It is generally used for storing short text values like name, email, phone number, etc. For storing text values with multiple lines, use [Long text](/docs/product-docs/fields/field-types/text-based/long-text) field.
<Callout type="warning">Limit: 100,000 characters</Callout>

## Create a single line text field
1. Click on `+` icon to the right of `Fields header`
2. On the dropdown modal, enter the field name (Optional).
3. Select the field type as `Single line text` from the dropdown.
4. Set default value for the field (Optional).
5. Click on `Save Field` button.

![image](/img/v2/fields/types/singlelinetext.png)
1. Click on the `+` icon next to the last field in your table.
2. Enter a name for the field.
3. Select `Single line text` from the list of field types.
4. Optionally, you can set a default value for the field & add a description.
5. Click on `Save field` to add the field to your table.

<Callout type="info">Specify default value without quotes</Callout>
Refer here for generic guidelines on [creating a field](/docs/product-docs/fields#create-a-field).

<Callout type="info">Specify default value as is, without quotes</Callout>

## Similar text based fields
Following are the other text based fields available in NocoDB, custom-built for specific use cases.
Expand Down
14 changes: 14 additions & 0 deletions content/docs/fields/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ To add a new field to your table:

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](/docs/product-docs/fields/actions-on-field#change-default-value) for more details on how to configure default values.

## Field Description

![Field description](/img/v2/fields/field-description.png)

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](/docs/product-docs/fields/actions-on-field#add--edit-field-description).

<Callout type="info">You can also search for fields using their names or descriptions. This helps quickly locate specific fields, especially in larger tables with many columns.</Callout>

![Field search](/img/v2/fields/field-search.png)

## 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.
Expand Down
Binary file added public/img/v2/fields/field-description.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/v2/fields/field-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading