Field properties
Each field of a form has properties. You set them in Customize Form or in the Custom Field form. Some properties exist only for some field types. Where the two forms use different labels, the table gives both.
The field type is in Type (Customize Form) or Field Type (Custom Field).
Basic properties
| Property | What it does |
|---|---|
| Label | The name of the field on the form. |
| Name (Fieldname in Custom Field) | The internal name, used by scripts and print formats. ERPNext makes it from the label. |
| Options | Depends on the field type. For Select, the choices, one on each line. For Link, the DocType to link to. For Table, the child DocType. |
| Default | The value of the field in a new document. Read Set a default value. |
| Description | Help text that appears below the field. |
| Placeholder | Grey text inside an empty field. |
| Length | The largest number of characters, for Data, Link, and similar fields. The default is 140. |
| Precision | The number of decimal places, for Float, Currency, and Percent fields. |
Values from other documents
| Property | What it does |
|---|---|
| Fetch From | Copies a value from a linked document, written as link_field.source_field. Read Fetch values from a linked document. |
| Fetch on Save if Empty | Fetches the value only if the field is empty, so that it does not overwrite a value that a user entered. |
Conditions
Write a condition as a field name, for example is_fixed_asset, or as eval: and a JavaScript expression, for example eval:doc.status == "Open".
| Property | What it does |
|---|---|
| Depends On | Shows the field only when the condition is true. For example, the Item form shows Asset Category only when Is Fixed Asset is selected. |
| Mandatory Depends On | Makes the field mandatory only when the condition is true. |
| Read Only Depends On | Makes the field read only when the condition is true. |
Behavior
| Property | What it does |
|---|---|
| Is Mandatory Field (Mandatory) | The user must fill in the field before saving. |
| Unique | No two documents can have the same value, for example a tax ID. |
| Read Only | The user cannot change the value. Use it for fetched or calculated values. |
| Hidden | Hides the field from the form. |
| No Copy | Leaves the field empty when a user duplicates the document. |
| Allow on Submit | Lets users change the field after the document is submitted. Custom fields only. Read Allow editing a field after submit. |
| Ignore User Permissions | For Link fields: lets users select documents that their user permissions would hide. |
| Permission Level (Perm Level in Customize Form) | Groups the field with others for field-level permissions. Read Perm Levels. |
| Non Negative | Blocks negative numbers. |
Lists, filters, and search
| Property | What it does |
|---|---|
| In List View | Shows the field as a column in the list, or in the rows of a child table. |
| In Standard Filter | Adds the field as a filter at the top of the list. |
| In Global Search | Lets users find documents by this field in the search bar. |
| In Preview | Shows the field in the pop-up that appears when you hover over a link. The DocType needs Show Preview Popup. |
| Bold | Shows the field in bold. |
| Columns | The width of the field in a child table, in units of 1 to 10. Read Choose the columns of a child table. |
| Width | The width of the column in the grid. |
Printing and reports
| Property | What it does |
|---|---|
| Print Hide | Hides the field in the standard print format. Read Show or hide fields in the standard print format. |
| Print Hide If No Value | Hides a number field in the print when it is empty. |
| Print Width | The width of the field in the print. |
| Report Hide | Hides the field in the Report Builder. |
Other
| Property | What it does |
|---|---|
| Translatable | Translates the value with custom translations. |
| Ignore XSS Filter | Keeps HTML tags in the value instead of cleaning them. Use it only for trusted content. |
| Allow in Quick Entry | Shows the field in the quick entry pop-up. |
| Hide Seconds, Hide Days | For Duration fields: hides the seconds or the days. |