Custom fields
Add your own fields to documents, their lines and master records: on screens, in lists, printing, email and workflows.
What custom fields are for
Custom fields hold what your company tracks that the ERP doesn't have a place for: a Cost center on journal entries, a Project code on each journal line, a Requires approval checkbox on sales orders, a Region on customers. A field shows on the record's page under More details, and can also show in the list, print on documents, go into emails, and be used by automations and workflows.
They work on these records:
| Record | Fields on the record | Fields on each line |
|---|---|---|
| Journal entries | On the entry form | A column in the lines table |
| Sales orders and quotes | On the order form | A column in the lines table |
| Purchase orders, bills | More details card | A column in the lines table |
| Shipments | More details card | On each line's page (Edit line, Add a line), shown under the item |
| Invoices, items | More details card | — |
| Customers, vendors, projects, contracts | More details card | — |
| Customs entries, freight bookings, shipment problems | More details card | — |
| Vendor payments | More details card | — |
| Customer payments | On the payment form, and on the payment under the sales order | — |
| Vendor credits | Filled by defaults, copying and automations; printed | — |
Adding a field
- Open Settings › Custom fields.
- Click Add a field on the kind of record it belongs to (records with no fields yet are listed at the bottom).
- Give it a Name and choose the Kind of field. For a list of choices, type the choices, one per line.
- For a record with lines, choose whether it Goes on the record or on each line.
- Set where it shows, a default or where to copy it from, rules, and who can see or change it (see below).
- Click Add the field. It shows on every record of that kind straight away. There is no form to lay out and nothing to publish.
| Kind of field | Holds |
|---|---|
| Checkbox | Yes or no. A new record starts unticked unless the default is true. |
| Text, Long text | A line of text (up to 255 characters), or several paragraphs. |
| Number | A number, kept exactly as typed (no rounding). |
| Date | A day. |
| List of choices | One of the choices you give. |
| Several choices | Any number of the choices you give, such as tags. |
| Email address, Web address | An address, checked when it is typed. Automations can email an address field. |
| Person in the company | Someone in your company, such as an account manager. Automations can notify or email them. |
| Link to a record | A customer, vendor, item, project, contract or other record of your company, chosen in Links to. It shows by name. |
cost_center), the kind, Goes on and Links to can't change once the field exists: records, templates and automations refer to them. To start over, add a new field.Where it shows
| Setting | What it does |
|---|---|
| Section | A heading the field is grouped under, such as Shipping or Compliance. Fields with the same section sit together. |
| Order | Lower numbers come first. |
| On screen | People can fill it in; Shown, but only filled by defaults, copying and automations (read-only); or Not shown on screens, for a value only automations and printed documents use. |
| Show in lists | Adds a column and a filter to the list of these records: journal entries, sales orders, purchase orders, bills, items, projects, contracts, vendors, shipments, customs entries and freight bookings. Customers and shipment problems show the values under each name instead of a column. Filters: a choice, yes or no, text it contains, or a range of numbers or dates. The project and contract Export CSV include these fields as columns. |
Defaults, copying and rules
| Setting | What it does |
|---|---|
| Default for new records | What a new record (or line) gets. For a checkbox true; for a date today; for a person current_user (whoever creates it). |
| Copy from | When a record is created and the field is empty, it is filled from a linked record, for example Customer › Region onto a sales order, or Item › Country of origin onto each order line. A line field can copy from the record it belongs to: Journal entry › Cost center fills each new line. People can still change the value afterwards. |
| Required | It can't be left empty when the record is saved. |
| Smallest allowed, Largest allowed | For numbers. |
| Longest allowed, Must match | For text: a length, and a pattern (a regular expression) with the message people see when it doesn't match. |
Rules as the record moves along
Like the field settings of a step in a workflow, a field can behave differently in different statuses. These settings are on records that have a status, such as journal entries and orders.
| Setting | What it does |
|---|---|
| Required when the status is | The record can't be saved in those statuses with the field empty, and can't be sent for approval, approved or posted into one of them. For a line field, the message names the line: Fill in Project code on line 2 before posting it. |
| Locked when the status is | People can't change it in those statuses; the page says Locked in this status. Automations still can. |
Custom fields and approvals
On records that can be sent for approval (journal entries, sales and purchase orders, payments, projects, contracts, shipments, customs entries and freight bookings), a field can take part in the approval:
| Setting or place | What it does |
|---|---|
| Required before it is sent for approval | Sending the record for approval is refused while the field (or the field on any line) is empty: Fill in Budget code before sending it for approval. This applies to the Send for approval button, to sending a returned request again, and to a workflow's Ask for approval step (the run stops and says why). |
| Locked while it waits for approval | People can't change it while the approval request is open, so approvers decide on what they see. The page says Locked while it waits for approval. It opens again once the request is decided, returned or cancelled. |
| Approval step conditions | In Approvals › a process › a step's conditions, custom fields are listed after the record's own fields, marked (custom field). "Risk equals High" or "Hours is greater than 100" can send a record to an extra step. |
| The approval request page | Approvers see the record's custom fields under More details, next to the request's details (fields hidden from their role are left out). |
Who can see and change it
- Leave Who can see it and Who can change it empty for everyone who can see, or change, the record.
- Tick roles to limit it. People with other roles don't see the field at all (not on screen, in lists or on what they print), or see it without being able to change it. Admins always can.
- Automations may change it lets Change a field in an automation set it. Automations can always read it.
Setting fields up needs the Custom fields permission (Settings › Roles). Filling them in on a record follows the record's own permissions.
Filling them in
- On a journal entry or a sales order, the fields are on the form itself: More details under the header, and a column per line field in the lines table. On purchase orders and bills, line fields are columns in the lines table too. They are saved with the rest of the record.
- On other records, open the record, click Edit on the More details card, fill in the fields and click Save.
On a new record the defaults are already filled in. Fields copied from a linked record are filled when the record is saved.
Printing and email
- In the document template designer, the fields are listed under Custom fields (
custom.cost_center), and line fields under Lines (lines.custom.project_code). Customer statements can print the customer's own fields. - In an email template for a document, insert
{{ custom.cost_center }}; the editor lists your fields with the other variables.
Using them in automations and workflows
A custom field is listed with the record's own fields everywhere in the automation editor:
- To start it: under When, tick the field under Only when these fields change.
- In conditions: under If, in Check a condition and in Wait for a condition: "Requires approval is yes". Line fields can be tested too: "any line's Project code is empty".
- To change it: with Change a field. A checkbox is set to Yes or No; a person field can be set to the person who made the change.
- In messages: Insert a field lists it, for example
{{ cf.contract_number }}; inside Repeat for each line,{{ line.cf.project_code }}. - As recipients: a person field can be notified or emailed; an email field can be emailed.
If something looks wrong
| What you see | What to do |
|---|---|
| A field doesn't show on a record | Check In use and On screen on the field, and whether Who can see it leaves out your role. |
| You can see a field but not change it | Your role isn't in Who can change it, the field is read-only, it is locked in the record's status, or you can't change the record itself. |
| "Fill in … before posting it" | A field is required in the status the record is moving to. Fill it in on the record (or the line named) and try again. |
| A copied field stayed empty | Copying happens once, when the record is created, and only when the linked record has a value. Fill it in by hand, or use an automation with Change a field. |
| "… is used by …" when deleting | Take the field out of those automations first, or untick In use to hide it without losing what was filled in. |
| An automation didn't start when the field changed | Check its When watches that field and its conditions match. The record's Automations panel shows what ran. |