Skip to main content

Custom fields

Every distributor tracks something the software has no box for. A customer's own purchase-order number, which sales rep owns an account, whether a batch has been lab-tested, the licence number a state asks for.

Custom fields are how you add those, on any kind of record, without anybody changing the software. A field you add is a field like any other: it shows on the record, it goes into imports and exports, and it can be filtered and reported on.

Find it under Settings → Custom fields.

Adding one​

  1. Choose the kind of record it belongs on — example documents, and every other kind as later parts of the product arrive.
  2. Give it a label. This is what people see, and you can reword it whenever you like.
  3. Give it a name in the data. See below — this one you cannot change.
  4. Choose a kind: text, a number, an amount, a date, yes-or-no, one choice from a list, several choices, and so on.
  5. Say whether it must be filled in.

It appears on that kind of record straight away. There is nothing to deploy and nobody to ask.

On customers and suppliers your fields are filled in from the New and Edit drawers, in a section called Custom fields, and shown on the record page. A field that must be filled in is marked, and the drawer says so beside it before you save. Empty a field to remove its value. If you have not added any fields for that kind of record, the section is not shown at all.

The name in the data​

The label is what people read. The name in the data is what the system uses — the column heading in a spreadsheet export, the name to put in an import file, the name a developer uses in the API.

Keep it lower case, boring, and specific: customer_po, not PO and not Customer PO Number (new).

It cannot be changed afterwards. Every value already saved is filed under it, and renaming it would leave all of them behind with nothing to explain them. If you got it wrong, add a new field with the right name and move the data across.

The kind cannot be changed either, for the same reason: values already saved as text are not numbers, and pretending otherwise breaks every one of them.

Choices​

A one choice or several choices field needs a list to choose from. Type them one per line, or separated by commas.

You can add choices later. Reword one and every record already carrying it follows, because what is stored is the value and what you edited is the label.

Retiring a field​

There is no delete, and that is deliberate.

Switch a field off instead. It disappears from every form, and everything already recorded in it stays readable — in exports, in the record's history, and to an auditor. A deleted definition would leave values on hundreds of records with nothing to say what they meant.

Switching it back on brings it back, with everything still in it.

A field that was switched off because the record now has a built-in field for the same thing stays off — two places to type one fact would leave nobody sure which one counts. If you try to switch it back on, the page says "That field could not be saved." and the field stays off. It does not say why. On a product, the fields this applies to are E-Liquid Volume, Ounce Per Product and Cigarettes per unit: use Net volume, Net weight and Units per package instead.

Common mistakes​

"I need an amount field and it won't save." An amount needs a currency. A number without one is half a fact, so the form asks for the currency when you choose that kind.

"My import says the column is unknown." The heading has to be the name in the data, not the label. Export a few rows first and use the headings you get back.

"The field is on the wrong records." A field belongs to one kind of record. Add it again on the other kind — it can have the same name in the data, because they do not share a space.

Frequently asked​

Who can add fields? Anybody with the manage permission — a manager by default. Everybody can see which fields exist, because "why is this form asking me that" is a fair question with an answer.

Is there a limit? Not a hard one, but a form with forty extra boxes is a form nobody fills in. Put the ones people actually use at the top.

Can a field be required only sometimes? Not yet. Required means required on every record of that kind.