Customize a form ​

Customize Form changes a standard form, such as Sales Order or Item, from the browser. You can add custom fields, change the properties of standard fields, and change form settings. ERPNext stores your changes separately from the standard form, so they survive upgrades.

Every form is a DocType. To learn how DocTypes work, read About DocTypes.

Prerequisites ​

  • The System Manager role.

Open Customize Form ​

Use one of these ways:

  • Open Customize Form from the search bar, and select the DocType in Enter Form Type.
  • In the list of the DocType, open the menu and select Customize.
  • In a form, open the menu and select Customize.

Change the form ​

  1. Open Customize Form for the DocType.
  2. Make your changes:
    • Add, move, or remove fields in the form builder. Read Add a custom field.
    • Change the properties of a field, such as its label, default, or Print Hide. Read the field properties reference.
    • Change the form settings in the table below.
  3. Select Update.

ERPNext applies the changes at once. Reload the page to see them.

Form settings ​

SettingWhat it does
Change Label (via Custom Translation)Renames the DocType in the UI, for example "Customer" to "Client". ERPNext stores the new name as a custom translation.
Title FieldThe field that ERPNext shows as the title of each document. Read Set the document title.
Show Title in Link FieldsShows the title instead of the ID in link fields.
Image FieldThe Attach Image field that holds the document's image, for example an employee photo.
Search FieldsExtra fields to show and search in link fields. Read Show more fields in link search results.
Sort Field and Sort OrderThe default sorting of the list. Read Change the sort order of a list.
Default Print FormatThe print format that the print view opens with.
Default Email TemplateThe template that the email dialog opens with. Read Create an email template.
Max AttachmentsThe largest number of files that you can attach to a document.
Default ViewThe view that opens first, for example List or Report.

More properties ​

SettingWhat it does
Hide CopyRemoves the Duplicate option from the form.
Is TableShown for child tables. With Editable Grid, users edit rows in the table instead of a pop-up form.
Quick EntryOpens a short pop-up form with only the mandatory fields when you create a document from another form.
Track ChangesKeeps a version history of every change. Read Track changes to a document.
Track ViewsRecords each time a user opens a document.
Allow Auto RepeatLets you repeat documents on a schedule. Read Auto Repeat.
Allow Import (via Data Import Tool)Lets users import documents with the Data Import tool.
Show Preview PopupShows a pop-up with the main fields when you hover over a link to the document.
Allow document creation via EmailLets an email account create documents of this type from incoming email.
Make Attachments Public by DefaultMakes new attachments public files.

Reset or clean up the form ​

The Actions menu of Customize Form has these options:

ActionWhat it does
ReloadLoads the DocType again and drops your unsaved changes.
Reset LayoutPuts the fields back in the standard order and sections. Your custom fields and property changes stay.
Reset All CustomizationsRemoves all your changes to the form: custom fields, property changes, and layout.
Trim TableDeletes database columns of fields that you deleted from the form.

WARNING

Reset All Customizations and Trim Table cannot be undone. Trim Table deletes the data in those columns. Take a backup first.