Build a custom control and place it on a form, step by step
When a form needs something its fields cannot show, such as a list of related matters, a star rating or a guided screen, build it as a custom control. You try it on real records, publish it, and place it without touching the form's code. The Matter workspace and the Jurisdiction Explorer are built this way.
Your own components, built from a description, stored in your database.
What a custom control is
- One small module your office keeps in its own database. Codossier Office draws it on a form beside the built-in parts.
- Four kinds: a field (one field's input), a panel (a form section, or in place of a subgrid), a whole page (a form's body, on its own form) and a dashboard (a page on the dashboard menu).
- It starts from a template or from a description, and you build it in a studio that renders it live on real records, in light and dark, wide and phone.
- Each publish is a kept version you can roll back to. A placement says where it shows and for whom.
- Everything lives in Builder → Custom Controls, for administrators only.
Good to know
- A control reads data as the person looking at it: it never shows them more than they may read.
- Each control has an off switch, and an office can turn all of them off in Office Settings → Security & Privacy. Wherever a control is off or fails, the standard part of the form shows.
- Try the lighter roads first: a form's layout, or a few lines of form script. Write a control when the office wants versions, a preview and rollback.
- A panel control can also take over a view's list page, as the Jurisdictions list does. That placement is not on the Placements tab.
Before you start
- You need to be an administrator: custom controls are written, previewed and published by the office's administrators only. Everyone else simply sees them on the forms where they are placed.
- We build Larkspur matters: a panel for the account form that lists the open matters in Larkspur Falls, with search, sort and a click to open each matter. It starts from a template, so you write no code. A second control, Client rating, shows a field shown as stars.
- Starting from a template, trying a control and placing it are free. Only asking Kuztom to write or change the code uses AI, and that costs money.
Part 1. Start a control
1Open Builder → Custom Controls
Each card is one control: its name, its key (custom: plus a short name; blanked in this picture), its scope, and badges that say where it stands: Live r4 (published, revision 4) or Not published, Draft when there is unpublished work, and On 1 place or Not placed.
Filter by status with All, Needs attention (failing on a form, live but placed nowhere, or on a runtime that is being retired), Live, Drafts and Switched off, and by scope with Field, Dataset, Body and Dashboard. Press New control to start one.

2Say what it should do, where it goes, and pick a template
- What should it do? One or two plain sentences. They are kept as the control's intent, which the AI reads before every change it makes.
- Where does it go? A field replaces one field's input (a rating, a slider). A panel shows in a form section or over a subgrid (a list, a chart, a summary). A whole page becomes a form's body (a guided screen, a board). A dashboard is a page on the dashboard menu, tied to no table. Pick A panel.
- Start from: the templates for that scope. For a panel: Records list, Bar chart by group or Figures. Pick Records list.
- Try it on (optional): the table the studio opens it on first. You can change it in the studio.
- Name and Key fill themselves from your words; the key is fixed once made.
Press Start from Records list: the control is made as a draft and the studio opens. Build it with Coin instead makes it empty and opens Kuztom with your description typed in, for you to send.

Part 2. Build it and try it in the studio
The studio is one screen with four tabs: Studio (the live stage and the code), Placements, Versions and Settings. The three cards across the top, Build, Publish and Place, always say where the control stands and what is next.
3The studio: a live stage on real records
The stage renders the draft as you work, on real records. Here it already lists the three open matters in Larkspur Falls. When it renders, the line above it says What you see is what publishes; when something is wrong it says Fix it to publish and the console shows why.
The Build card says Draft renders, Publish says Not published, and Place says Not placed: the next two steps.

4Check it the way people will see it
The bar above the stage switches the stage, never the control:
- Light and Dark: the office's two themes.
- Wide and Phone: a desktop width or a phone's.
- View as: another language, time zone or number format, as a person with those settings sees it.
- Remount: start it again from scratch.
- Follow the draft live: when the draft is saved somewhere else (by Kuztom, or in another tab), the stage loads it as soon as it lands.
The Console below lists errors, timings and every call the control makes to read data. Checks lists accessibility findings, such as a button with no name or text with low contrast.

5Try it on: the table, the record and its parameters
- Table: the table whose form it will sit on: Account.
- Tried as: A list (a view of the table, no record), or A form section (on a record), which adds a Record box to try it on a real record.
- Parameters: what the control asks for, one box each. This one asks for Records (a table and a view: Matter, Open Matters in Larkspur Falls) and a Title. Edit as JSON shows the same values as text.
The values you try here are carried into the placement in Part 3.

6Code: the module, Save draft and Publish
Click Code to see the module the template wrote. It is one file: a short config block at the top, properties (the parameters you just filled), and a mount function that draws the control. The stage renders as you type.
Save draft (or Ctrl+S) keeps your changes as the control's one working draft; it is saved over until you publish. Publish sends exactly what the stage shows: the server builds it from the source and every form loads it from then on. Publish stays greyed out until the stage renders.

7Ask Kuztom to change it (this costs money)
Press Kuztom in the top bar. A chat opens beside the studio, about this control. Type what should change (add a column for the client company, show the newest first) and send it: Kuztom reads the control's intent, edits the draft, and the stage renders the result for you to check. Nothing is published until you press Publish.
Each message uses AI and costs money; the pill at the top shows what Kuztom has spent on this control. We do not send one here.

8Settings: its description, its intent, and its off switch
- Description: one line, shown in the list under the name.
- Intent: what the control is for and the decisions behind it. Keep it current: the AI reads it before every change it makes.
- Switch off: the control's own kill switch. Off, every form leaves it out at once and shows its standard part instead. Every switch is recorded under History, below.
Press Save here after changing the description or the intent. To rename the control, edit its name at the top left of the studio and press Save draft.

Part 3. Publish it, place it, see it on the record
Publishing makes a control available; placing it makes it show. A published control placed nowhere shows nowhere, so do both.
9Publish, and keep every version
Press Publish when the stage shows what you want. Each publish is a new revision (r1, r2, ...) and the Versions tab keeps every one, exactly as it was. Here is a control Codossier Office ships, published four times:
- Live marks the revision forms load now.
- Compare with live shows what changed between an older revision and the live one.
- Make it live again rolls back: that revision becomes live on every form at once.
When a draft is ahead of the live revision, the undo button beside Publish discards the draft and goes back to the live one.

10Place it in a form section
Open the Placements tab and press Place on a form. You can place a control before it is published: the place stays standard until it is.
- Table and Form: the form people open, here Account Form.
- In a section adds the control as a section of its own. Under Section, choose A new section (after the form's sections) or an existing one, and give it a Header.
- Parameters come from the try-on; change them per place.
- Height: Auto (its own), or Fixed in pixels.

11Or over a subgrid, and who sees it
Over a subgrid puts the control in place of one of the form's subgrids. Pick the Subgrid: the control is then fed that subgrid's records, the ones related to the record on screen, so it needs no table or view of its own.
Shows sets the rules for any place: Records (New and existing, Only new records, Only existing records), Devices (Every device, Only desktops, Only phones) and Roles (none chosen means everyone). Rules shape what people see; they are not a permission. Where a rule says no, the standard part shows.
Press Place it to save the place. We stop here, so the control stays off every real form.

12A field control: pick the field
A field control replaces one field's input on a form, with no code. Client rating shows a number as one to five stars. Its placement asks for the Table, the Form and the Field it draws: a number field, here the account's Rating. If your table has no such field yet, add one first (a whole number or a decimal) in Tables. Then come its Parameters (Stars, five by default) and the same Shows rules. The form keeps drawing the label, the required marker and any error around it.
If you prefer code, Or place it in the table's script instead gives the one line to paste into the table's form script; a script's choice wins over a placement.

13A dashboard control: put it on the menu
A dashboard control is a whole page on the dashboard menu, tied to no table or record. It shows what the person opening it may read, nothing more. Its Placements tab is a short form instead of a dialog:
- Name on the menu and Description (under the title).
- Key: fixed once it is on the menu. Links (
/dashboard?d=plus the key), role grants and solutions name it. - Icon and Order (after the dashboards Codossier Office ships; lower first).
Press Put it on the menu, then give it to roles in Builder → Roles: see Dashboards and panels by role.

14Where it shows on a record
Once published and placed, a control is part of the form for everyone the rules let in: a section among the others, a subgrid's place, a field's input. A whole-page control gets its own form, so the record's form picker (top right) offers both forms. Here a matter offers Matter Form, the standard one, and Matter workspace, a page built as a custom control. People flip between them, and their pick is remembered.
If a control fails in someone's browser, the form shows its standard part and a short notice with a Notify administrators button, which sends the office's administrators one in-app notice for that version. The Needs attention filter of the list then shows the control as failing. As an administrator, add ?nocontrols=1 to a record's address to see the form without any control.

What next
- Want a whole new screen for a record instead of a panel? Choose A whole page in step 2: it gets its own form beside the standard one, as Matter has.
- The lighter road for a small change on one form is a form script: see Form scripts.
- A dashboard control appears for the roles that hold it: see Dashboards and panels by role.
- To build one by describing it, see Kuztom.