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
- Open Customize Form for the DocType.
- 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.
- Select Update.
ERPNext applies the changes at once. Reload the page to see them.
Form settings
| Setting | What 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 Field | The field that ERPNext shows as the title of each document. Read Set the document title. |
| Show Title in Link Fields | Shows the title instead of the ID in link fields. |
| Image Field | The Attach Image field that holds the document's image, for example an employee photo. |
| Search Fields | Extra fields to show and search in link fields. Read Show more fields in link search results. |
| Sort Field and Sort Order | The default sorting of the list. Read Change the sort order of a list. |
| Default Print Format | The print format that the print view opens with. |
| Default Email Template | The template that the email dialog opens with. Read Create an email template. |
| Max Attachments | The largest number of files that you can attach to a document. |
| Default View | The view that opens first, for example List or Report. |
More properties
| Setting | What it does |
|---|---|
| Hide Copy | Removes the Duplicate option from the form. |
| Is Table | Shown for child tables. With Editable Grid, users edit rows in the table instead of a pop-up form. |
| Quick Entry | Opens a short pop-up form with only the mandatory fields when you create a document from another form. |
| Track Changes | Keeps a version history of every change. Read Track changes to a document. |
| Track Views | Records each time a user opens a document. |
| Allow Auto Repeat | Lets 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 Popup | Shows a pop-up with the main fields when you hover over a link to the document. |
| Allow document creation via Email | Lets an email account create documents of this type from incoming email. |
| Make Attachments Public by Default | Makes new attachments public files. |
Reset or clean up the form
The Actions menu of Customize Form has these options:
| Action | What it does |
|---|---|
| Reload | Loads the DocType again and drops your unsaved changes. |
| Reset Layout | Puts the fields back in the standard order and sections. Your custom fields and property changes stay. |
| Reset All Customizations | Removes all your changes to the form: custom fields, property changes, and layout. |
| Trim Table | Deletes 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.