Field types
The field type decides what a field stores and how the form shows it. You select it when you add a custom field or create a DocType. The Options column says what to enter in the field's Options property.
Text
| Type | What it stores | Options |
|---|---|---|
| Data | One line of text, up to 140 characters by default. | Optional: Email, Name, Phone, or URL to check the value. |
| Small Text | A few lines of plain text. | - |
| Text | Several lines of plain text. | - |
| Long Text | Long plain text, with no practical limit. | - |
| Text Editor | Formatted text, with bold, lists, and links. ERPNext uses it for terms and conditions. | - |
| Markdown Editor | Text in Markdown format. | - |
| HTML Editor | HTML code, with an editor. | - |
| Code | Code, such as Python or JavaScript, with syntax highlighting. | Optional: the language, for example JS. |
| JSON | Data in JSON format. | - |
| Password | A secret value. ERPNext stores it encrypted and hides it on the form. | - |
| Read Only | A value that users cannot edit, usually fetched from another document. | - |
| Autocomplete | Text with suggestions as the user types. | The suggestions, one on each line. |
| Phone | A phone number, with a country code picker. | - |
The size limits of Small Text, Text, and Long Text depend on the database.
Numbers
| Type | What it stores | Options |
|---|---|---|
| Int | A whole number. | - |
| Float | A number with decimals, up to nine decimal places. The Float Precision in System Settings sets the default precision. | - |
| Currency | An amount of money, shown with the currency symbol. | Optional: the field that holds the currency. |
| Percent | A percentage. | - |
| Rating | A rating in stars. | - |
| Duration | A length of time in days, hours, minutes, and seconds. Use Hide Days and Hide Seconds to hide parts. | - |
Dates and times
| Type | What it stores |
|---|---|
| Date | A date, with a date picker. |
| Datetime | A date and a time. |
| Time | A time. |
Choices
| Type | What it stores | Options |
|---|---|---|
| Check | Yes or no, as a checkbox. The value is 1 or 0. | - |
| Select | One value from a dropdown list. | The choices, one on each line. |
Links to other documents
| Type | What it stores | Options |
|---|---|---|
| Link | The ID of a document of one DocType, for example the Customer of a Sales Order. Read Add a link field. | The DocType, for example Customer. |
| Dynamic Link | The ID of a document of any DocType. Another field holds the DocType. Read Add a Dynamic Link field. | The field name of the Link field that holds the DocType. |
| Table | Rows of a child DocType, for example the Items table of a Sales Order. | The child DocType, for example Sales Order Item. |
| Table MultiSelect | Many values of one DocType, shown as tags in one field. Read Add a Table MultiSelect field. | A child DocType with one Link field. |
Files and media
| Type | What it stores | Options |
|---|---|---|
| Attach | A file. | - |
| Attach Image | An image file. It can be the image of the document, set in Image Field. | - |
| Image | Shows the image from another field. It stores nothing itself. | The field name of the Attach or Attach Image field. |
| Signature | A signature that the user draws with the mouse or a finger, as on paper. | - |
| Barcode | A barcode value. ERPNext shows the barcode image for the value. | - |
| Color | A color, with a color picker. | - |
| Icon | An icon from the icon set. | - |
| Geolocation | Points, lines, and shapes on a map, stored as GeoJSON. Use it to record the location of an asset, a site, or a visit. Users draw on the map, or use the device location. | - |
Layout
These types arrange the form. They do not store data.
| Type | What it does |
|---|---|
| Tab Break | Starts a new tab. |
| Section Break | Starts a new section. Set a label to show a heading. |
| Column Break | Starts a new column in the section. |
| Fold | Hides the rest of the form behind a "Show more" link. |
| Heading | Shows a heading. |
| HTML | Shows fixed HTML content. |
| Button | Shows a button. A client script decides what it does. |
Add a signature field
- Open Customize Form for the DocType.
- Add a field with the label
Signature, and the type Signature. - Select Update, and reload the form.
Users can now sign in the field.