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 ​

PropertyWhat it does
LabelThe 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.
OptionsDepends on the field type. For Select, the choices, one on each line. For Link, the DocType to link to. For Table, the child DocType.
DefaultThe value of the field in a new document. Read Set a default value.
DescriptionHelp text that appears below the field.
PlaceholderGrey text inside an empty field.
LengthThe largest number of characters, for Data, Link, and similar fields. The default is 140.
PrecisionThe number of decimal places, for Float, Currency, and Percent fields.

Values from other documents ​

PropertyWhat it does
Fetch FromCopies a value from a linked document, written as link_field.source_field. Read Fetch values from a linked document.
Fetch on Save if EmptyFetches 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".

PropertyWhat it does
Depends OnShows 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 OnMakes the field mandatory only when the condition is true.
Read Only Depends OnMakes the field read only when the condition is true.

Behavior ​

PropertyWhat it does
Is Mandatory Field (Mandatory)The user must fill in the field before saving.
UniqueNo two documents can have the same value, for example a tax ID.
Read OnlyThe user cannot change the value. Use it for fetched or calculated values.
HiddenHides the field from the form.
No CopyLeaves the field empty when a user duplicates the document.
Allow on SubmitLets users change the field after the document is submitted. Custom fields only. Read Allow editing a field after submit.
Ignore User PermissionsFor 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 NegativeBlocks negative numbers.
PropertyWhat it does
In List ViewShows the field as a column in the list, or in the rows of a child table.
In Standard FilterAdds the field as a filter at the top of the list.
In Global SearchLets users find documents by this field in the search bar.
In PreviewShows the field in the pop-up that appears when you hover over a link. The DocType needs Show Preview Popup.
BoldShows the field in bold.
ColumnsThe width of the field in a child table, in units of 1 to 10. Read Choose the columns of a child table.
WidthThe width of the column in the grid.

Printing and reports ​

PropertyWhat it does
Print HideHides the field in the standard print format. Read Show or hide fields in the standard print format.
Print Hide If No ValueHides a number field in the print when it is empty.
Print WidthThe width of the field in the print.
Report HideHides the field in the Report Builder.

Other ​

PropertyWhat it does
TranslatableTranslates the value with custom translations.
Ignore XSS FilterKeeps HTML tags in the value instead of cleaning them. Use it only for trusted content.
Allow in Quick EntryShows the field in the quick entry pop-up.
Hide Seconds, Hide DaysFor Duration fields: hides the seconds or the days.