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 ​

TypeWhat it storesOptions
DataOne line of text, up to 140 characters by default.Optional: Email, Name, Phone, or URL to check the value.
Small TextA few lines of plain text.-
TextSeveral lines of plain text.-
Long TextLong plain text, with no practical limit.-
Text EditorFormatted text, with bold, lists, and links. ERPNext uses it for terms and conditions.-
Markdown EditorText in Markdown format.-
HTML EditorHTML code, with an editor.-
CodeCode, such as Python or JavaScript, with syntax highlighting.Optional: the language, for example JS.
JSONData in JSON format.-
PasswordA secret value. ERPNext stores it encrypted and hides it on the form.-
Read OnlyA value that users cannot edit, usually fetched from another document.-
AutocompleteText with suggestions as the user types.The suggestions, one on each line.
PhoneA phone number, with a country code picker.-

The size limits of Small Text, Text, and Long Text depend on the database.

Numbers ​

TypeWhat it storesOptions
IntA whole number.-
FloatA number with decimals, up to nine decimal places. The Float Precision in System Settings sets the default precision.-
CurrencyAn amount of money, shown with the currency symbol.Optional: the field that holds the currency.
PercentA percentage.-
RatingA rating in stars.-
DurationA length of time in days, hours, minutes, and seconds. Use Hide Days and Hide Seconds to hide parts.-

Dates and times ​

TypeWhat it stores
DateA date, with a date picker.
DatetimeA date and a time.
TimeA time.

Choices ​

TypeWhat it storesOptions
CheckYes or no, as a checkbox. The value is 1 or 0.-
SelectOne value from a dropdown list.The choices, one on each line.
TypeWhat it storesOptions
LinkThe 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 LinkThe 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.
TableRows of a child DocType, for example the Items table of a Sales Order.The child DocType, for example Sales Order Item.
Table MultiSelectMany 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 ​

TypeWhat it storesOptions
AttachA file.-
Attach ImageAn image file. It can be the image of the document, set in Image Field.-
ImageShows the image from another field. It stores nothing itself.The field name of the Attach or Attach Image field.
SignatureA signature that the user draws with the mouse or a finger, as on paper.-
BarcodeA barcode value. ERPNext shows the barcode image for the value.-
ColorA color, with a color picker.-
IconAn icon from the icon set.-
GeolocationPoints, 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.

TypeWhat it does
Tab BreakStarts a new tab.
Section BreakStarts a new section. Set a label to show a heading.
Column BreakStarts a new column in the section.
FoldHides the rest of the form behind a "Show more" link.
HeadingShows a heading.
HTMLShows fixed HTML content.
ButtonShows a button. A client script decides what it does.

Add a signature field ​

  1. Open Customize Form for the DocType.
  2. Add a field with the label Signature, and the type Signature.
  3. Select Update, and reload the form.

Users can now sign in the field.