Skip to content

Custom Fields and Templates

Fields of your own for the facts the standard record has no box for, and templates so the tenth similar item takes a tenth of the typing.

Custom fields

HomeBox's standard fields cover buying and guaranteeing. They do not cover "Shelf position: counter, left end" or a bowl capacity or a shutter count — facts that matter for one kind of thing and no other. Custom fields are your own additions to an item, in four shapes:

  • text — a line of words
  • number — a whole number (the decimal trap from chapter 5 lives here: 6.5 is refused, 5 is fine)
  • boolean — yes or no
  • time — a date and time

The lab put two on the stand mixer — Shelf position ("Counter, left end", text) and Bowl capacity (litres) (5, number) — and read them back stored (transcript t10). Custom fields are per-item rather than per-kind: nothing forces the next mixer to have them, which is where templates come in. They also surface in the spreadsheet export as their own columns (HB.field.Shelf position and family — transcript t19), so what you record in them stays findable outside the program.

Templates

A template is a pre-filled starter record: default manufacturer, default description, the warranty and purchase sections switched on or off, tags applied in advance, and a set of custom fields ready to fill. The lab built one called Camera body — manufacturer Norra, with Shutter count (number) and Lens mount (text) fields — and then minted an item from it through the API (transcript t20). The created item arrived with the manufacturer and both fields already in place, and — worth noticing — with its asset ID assigned on the spot.

Templates earn their keep when a kind of thing repeats: a camera collection, a shelf of power-tool batteries, the dozens of near-identical boxes a move produces (chapter 15 uses them there). They are also where groups share conventions: decide once which fields a record of this kind should carry, and every later record starts life complete.

The check for this chapter: think of the kind of thing you own most of. If recording the fifth one would mean re-typing the same three facts, it wants a template — and if one of those facts has a decimal point, it wants a text field.