Field Types
Field Types
The types of fields that you can define while adding new ones or changing existing ones are as follows.
Link
Link field receives data from another master through a connection. For instance, the Customer field in the Quote master is a link field. To learn more, go here.
Dynamic Link
Any document or document type can be searched for and stored in a dynamic link field. To find out how Dynamic Link Field works, click here.
Check
You will be able to have a checkbox as a result of this.
Select
A drop-down field will be used for Select. The Option box allows you to enter numerous results, separated by a row.
Table
A table is a particular type of Link field that displays another DocType on the current form. For instance, the Sales Order's Item Table is a Table field that is connected to the Sales Order Item DocType.
Attach
You can browse a field in the File Manager and attach it here using the attach field feature.
Attach Image
The field labeled "Attach Image" allows you to insert images in the jpeg, png, etc. formats. This turns becomes the Picture for that specific DocType. You may select your field to be an Attach Image Field, for instance, if you wanted the image of an item in its DocType.
Text Editor
A text field is a text editor. It offers choices for text formatting. This field in ERPNext is typically used to define Terms & Conditions.
Date This form will enable you to enter the Date in this field
Date and Time You can select a date and time in this area. By default, the time and date are set to the current time (as provided by your computer).
Barcode In this box, you can choose a date and time. The time and date are set by default to the current time (as provided by your computer).
Button An action button, such as Save, Submit, etc., will be included in this type of field.
Code You can enter a code into the field if the field type is set to code.
Color For this Form, you will have the choice of what color to use.
Column Break You can separate a group of fields into a maximum of two columns using Column Breaks because ERPNext allows multiple column layouts.
Currency The currency field stores numerical values such as the item's price, the amount, etc. Up to six decimal places can be used in the currency field. Moreover, you can choose to have a currency symbol appear in the currency field.
Data The data area will be a straightforward text box. The most general field type, it allows you to input a value of up to 140 characters. Configure the settings in Settings > DocType to "Email", "Name", or "Phone" to allow validations for Email, Name, or Phone Number inputs.
Float The float field can store values with up to nine decimal points in them. Set Precision controls the float field's precision.
Setup > Settings > System Settings
The setting will be applicable on all the float field.
Geolocation To store a GeoJSON feature collection, use the Geolocation field. holds points, lines, and polygons. For internal circle identification, it makes use of the following special characteristics.
Check out the Geolocation box for more information.
HTML When you want the data to be input in HTML format, you can choose the field to be an HTML field.
Image
An image file selected in another attach field will be displayed in the image field.
A field name where the image file is associated should be specified for the Image field under Option (in Doctype). The image will be a reference in the Image field by referring to the value in that field.
Int (Integer) Without a decimal point, integer values are stored in this field.
Small Text The Tiny Text field can contain more characters than the Data field and is used for text-based content.
Long Text When you need to enter data with no character restriction, you can define your field as a long text field.
Text You could enter text in the field using this field type. The Relational Database Management System shall be used to establish the character limit in the Little text, Long text, and Text fields.
Markdown Editor You can enter text in Markup language in this field.
Password The encoded value will be in the password box.
Percent You can specify the field as a percentage field, which will be converted to a % in the background.
Rating You can specify the field as a rating field, which will be converted to a rating in the background.
Read Only A read-only field will contain non-editable material that has been obtained from another form. If the field's source for value is preset, you should set the field type to Read Only.
Section Break The form can be divided into several sections by using Section Break.
Signature The field can be designated as a signature field, and a digital signature can be added there. For further information, consult the Signature Field documentation.
Table MultiSelect This combines fields of the "Link" and "Table" types. Several values can be chosen from one field rather than having to use a child table with a "Add Row" button.
Time You can specify the time in this field, which is a time field.
Duration If you want to specify a time period, you can do so using the Duration field.
In your Form, you may enable the "Hide Days" and "Hide Seconds" options if you don't want to track duration in terms of days or seconds.
After the aforementioned changes, the duration field appears as follows.