Custom fields
Custom fields let a business track its own details on clients and other records, such as a lead stage, a referral source, or the staff member who manages an account. An owner adds them in Settings > Custom fields, and every page, list, automation, and agent picks them up.
Record types
Section titled “Record types”Clients, invoices, quotes, tickets, projects, proposals, and contracts take custom fields. A module can add its own record types (see Writing a module).
Field types
Section titled “Field types”| Type | Holds | Lists filter by |
|---|---|---|
| Text | One line, up to 1,000 characters | Part of the text |
| Long text | Several lines, up to 10,000 characters | Part of the text |
| Number | Any number | Sort only |
| Date | A day, such as 2026-12-31 | Sort only |
| Dropdown | One of the owner’s choices | The choice |
| Multiple choice | Any of the owner’s choices | One choice |
| Checkbox | Yes or no | Yes or no |
| Link | A web address starting with http or https | Part of the address |
| Staff member | An active staff account | The person |
Each field has a key, such as lead_stage, made from its label unless the owner picks one. The key and the type never change once the field exists, because automations and agents read values by key. To change a type, add a new field.
Options
Section titled “Options”- Required: staff must fill it in when they add a client or save a record’s custom fields. Agents and automations that add a client must fill it too.
- Show in lists: adds a column for it on the record type’s list.
- Clients see it: shows its value, read-only, on the client’s portal pages. Fields without this stay staff-only everywhere.
Removing a field deletes every record’s value for it.
Where they show up
Section titled “Where they show up”- Record pages. A Custom fields panel on each staff record page shows the values. Staff who can edit that kind of record (for example
clients.managefor clients) edit them in place. - New client form. The client form asks for every client field.
- Lists. Every list with custom fields gets filters and a sort for them, kept in the address so a filtered list can be bookmarked. On phones they fold behind a Filter and sort button.
- Export. Clients > Export CSV downloads the client list, with a column for each custom field and the list’s current filters and sort.
- Client portal. Fields marked “Clients see it” appear on the client’s portal home (client fields) and on each record’s portal page.
Automations
Section titled “Automations”Every record in an event payload carries its values under custom_fields, so a script reads event.client.custom_fields.lead_stage or event.invoice.custom_fields.po_number.
The core.custom_fields_changed event fires when anyone, staff, an agent, or an automation, changes a record’s values. It carries entity (such as client), the record under that name, and changes, which holds each changed field’s from and to:
export default async function (event, tradehall) { const stage = event.changes.lead_stage; if (event.entity === 'client' && stage && stage.to === 'Active client') { await tradehall.mail.send({ to: 'owner', subject: `${event.client.name} signed on`, text: 'Time for onboarding.' }); }}Agents and MCP clients
Section titled “Agents and MCP clients”Three tools work on every record type, so agents and MCP clients such as Claude read and fill custom fields the same way:
custom_fields_listlists each record type’s fields, with their keys, types, and choices.custom_fields_getreturns a record’s values.custom_fields_setchanges some of a record’s values and checks them as the form does.
clients_search also finds clients by custom field, clients_get returns a client’s values, and clients_create takes them.
Permission
Section titled “Permission”Settings > Custom fields needs custom_fields.manage (“Add, change, and remove custom fields”). Owners hold it through *.