Set up a table's forms, step by step
Give each kind of work the form that fits it: one table, several forms, and each person opens records in the one they picked. In this guide you open a table's forms, lay one out in the Designer with sections, columns and a subgrid, set which fields are required, hidden or read-only, and see how people switch forms on a record.
Several forms per table, each person on the one that fits their job.
What a form is
- A form is how a table's records look when opened: sections, the fields in each, one to three columns, and lists of related records (subgrids).
- A table can have several forms (intake, partner review, billing). One is the default; the others show in a form box at the top right of every record.
- All forms of a table share one layout and one script. Each form can add its own part to that script, by its key (see Form scripts).
- Everything lives in Builder → Forms: the Designer tab edits the layout by clicks, the Code tab edits the same file as text.
- A script written by hand opens on Code. Convert it once to designer-managed, and from then on the Designer rewrites the layout while your code stays as it is.
Good to know
- Required is a setting of the field, so it holds on every form and in the API alike. Read-only by case is a rule in the script's triggers.
- In a hand-written script, a field you add to the table later shows on the form by itself until you place it. In a file the Designer manages, every field not placed on the form is hidden when you save, so place a new field with Add to this section.
- A form never fails to open: a missing or broken layout falls back to the plain form with every field, and a broken region of a designer-managed file drops alone.
Before you start
- You need to be a Global Administrator: Builder → Forms and Metadata Management show only to them.
- Parts 1 and 4 use the Matter table, which already has two forms. Parts 2 and 3 lay out the form of a newer table, Court Appearance: one record per hearing, with its matter, date and time, court and judge, who attends, and the outcome. Make your own table first in Tables and fields; the steps are the same for any table.
- Nothing in this guide is saved until you press Save, Create or Rename, or the star. Where this guide marks one of those, press it only on your own table.
Part 1. Open the table's forms
1Open Builder → Forms and pick the table
Go to Builder → Forms. The page opens empty with one box in the bar: Pick a table…. Every table is in the list, by its name and its schema name; pick Matter.

2The bar: the table, its forms and its script
Once the table is picked, the bar shows, from left to right:
- Form: the table's forms; the default one is marked Default.
- + (New form), the pencil (Rename the form or change its key), the star (Make this the default form) and the bin (Delete this form, after a question; a table keeps at least one form, and its default and its first form stay).
- The line under it names the table's one script,
matter.js, and how many forms share it. - To change the default, pick the form in Form and press the star. It applies at once, with no question asked, for everyone who has not picked a form of their own.
- Designer and Code on the right: the two ways to edit the layout.

3Pick the form to work on
Open the Form box. Each form shows its name and its key in brackets, the eight letters and digits that name it in the script. The default form says default: it is the one a person opens until they pick another.

4Add a form: press + and name it
Press +. Type the form's name as people will see it, for example Quick intake. Its key is generated for you. Create makes the form at once; it is not the default, and it opens with the table's layout and script until you give it a part of its own (see Form scripts).

5Rename a form or change its key
The pencil opens Rename form or change its key. The Name is what people see in the form box. The Key is 8 letters and digits; change it only together with the script, because the form's own part of the script is found by its key. Press Rename to keep the change.

Part 2. Lay out the form in the Designer
Every form of a table shares one layout and one script, {table}.js. The Designer tab edits that layout with clicks; the Code tab edits the same file as text. A file the Designer manages is split into regions: it rewrites the layout regions on every save and never touches the code regions.
6Open the Designer tab: a hand-written script asks first
Click Designer. A table whose script was written by hand shows the pill Hand-written script in the bar and this notice instead of the Designer, so that nothing written there is lost. Every existing table, like Matter here, opens this way, and so does a table you have just made, even though its script is still empty.
Press Convert to designer-managed…. Converting saves nothing yet.

7Review the converted file, then Save
The converted file opens on the Code tab, marked Unsaved. It starts with the layout regions the Designer will manage: @crift:region:ordering (the sections and their fields), then subgrids and visibility. The old file is copied, word for word, into the exotic region at the end, which runs only onSave, ribbon, forms and a custom body.
- A new table: the old file is an empty stub, so review and press Save. That is all we did on Court Appearance.
- A table with code: before you save, move any
onLoadandonChangeinto the triggers region (between its two markers), or they stop running. On Matter that is the address search, so this guide leaves Matter as it is.
Once saved, the bar no longer says Hand-written script, the Code tab says Designer-managed, and the Designer tab opens on the form itself.

8The Designer: your form as people will see it
Pick Court Appearance in the bar. The Designer tab now shows the staging: the form as people will see it, one card per section, each field in its column, and a placeholder for each subgrid. Nothing here is saved until you press Save.
- Click a section or a field to edit it; its settings open under the staging.
- Add section (or + Section in the bar) adds an empty section. Control adds a section that shows a custom control (see Custom controls).
- The count at the bottom right, 1 field not on the form, is every field that is not placed; those are hidden when you save.
- Validate checks the layout before you save; Save writes it for every form of the table.
The orange line says this file also holds code written by hand (here, the read-only rule of Part 3). The Designer never changes it.

9Click a section: its label and its columns
Click the section Court and Judge. Under the staging you see its settings:
- Label: the heading people see on the record. A new section is called New Section; type its real name.
- Columns: 1, 2 or 3. Court, department and judge are short, so this section uses 3; the others use 2.
- show the label: untick it to keep a section without a heading (a table's first section, General, starts with it off).
- Add to this section: a button for every field not on the form. One click places that field at the end of this section.
- The arrows move the whole section up or down; Remove takes the section off and sends its fields back to the list.

10Add a field to a section
Click the section where the field belongs (here Hearing), then click the field under Add to this section, here + Description. It appears at the end of the section at once, the bar says Unsaved, and the list says Every field is on the form.
A field you add to the table later shows up in this list: place it here, or it stays hidden once you save.

11Click a field: move it, pin it to a column
Click a field on the staging, here Attending Attorney. Its settings show under the staging:
- Section: the section it sits in. Pick another to move it there (next step).
- Column: Auto lets it flow with the fields around it; a number pins it to that column. You get one number per column of the section (here 1 and 2); a one-column section has no Column setting.
- The up and down arrows move it within its section.
- Remove takes it off the form (step 13).

12Move a field to another section
Open Section and pick where the field should go, for example Court and Judge. The field moves to the end of that section, and keeps its column if the new section has that many. Then use the arrows to put it in place.

13Remove a field: it is hidden when you save
Click a field and press Remove, here Department. It leaves the staging and goes back under Add to this section, and the count says 2 fields not on the form. When you save, every field not on the form is listed as hidden in the file, so it shows on no form of this table. The field and its values stay in the table: add it back with one click.
On Court Appearance we hid Description this way, because Outcome Notes holds what matters.

14Add a subgrid of related records
A subgrid lists the records of another table that point at this one. Click the section that should hold it (here Outcome and Next Steps), then + Subgrid:
- Child table (1:n relationship): every lookup that points at this table, by table and lookup field. Court Appearance has a lookup to itself, Continued From, so a hearing can list the later hearings it was continued to.
- Label (optional): its heading on the form; left empty, it uses the table's plural name.
- Views: tick the views people may switch between in the subgrid. None ticked offers every main view.
Press Add. The subgrid shows in the section as a placeholder.

15Validate, then Save
Make your last changes (here the first section is renamed Hearing Details), then press Validate. A green line says what will be saved: 3 sections, 13 fields on the form, 1 off it; a red one names what is wrong. Then press Save.
Save rewrites the layout regions of the file and the section labels, and leaves the code regions as they are. It applies at once to every form of the table. The round arrow beside Validate drops the unsaved changes.

16The finished form on a court appearance
Open any court appearance. The record shows the three sections with their labels: Hearing in two columns, Court and Judge in three, then Outcome and Next Steps with its subgrid. Continued to Later Hearings lists the hearing that continues this one, and New above it adds a court appearance from the record. Steps 10, 13 and 15 showed changes without saving them, so the form here is the layout as it was saved before them.

Part 3. Required, hidden and read-only fields
17Required: set it on the field itself
A field that must always be filled is required on every form, so it is set on the field, not on a form: Builder → Metadata Management, the table, Columns, the field. On Court Appearance, Matter and Date and Time are required: turn on Required and save. Every form, and the API, then refuses to save a record without it, and the form marks the label with a red star.
- Help text shows when people point at the field.
- Field Context puts a short line of help under the field on every form.

18Hidden and read-only in the file
The Code tab shows what the Designer wrote. In the visibility region:
hiddenlists the fields not on the form, written by the Designer on every save.readonlylists fields that are always read-only on every form. The Designer keeps what you write there.
A field that is read-only only in some cases is a rule in the triggers region, which you write here and the Designer never touches. Ours: once a hearing has an outcome other than Pending, the court, the department and the judge lock, so the record keeps where it was heard. It runs when the record opens (onLoad) and when Outcome changes (onChange). More rules like it: Form scripts.

19The read-only rule at work
On the hearing whose outcome is Continued, the three fields are grey and cannot be changed. On the hearing it was continued to, still Pending, the same three fields stay open. The rule also runs when Outcome changes, so the fields lock or open as soon as someone picks an outcome.

Part 4. Several forms: how people pick theirs
20On a record: the form box, top right
Open any matter. When a table has two forms or more, the form box shows at the top right of the record. A person opens it and picks the form that fits their work; the same record opens in it at once, with any unsaved values carried over. Their pick is kept for them: every matter they open next uses it.

21The same matter in its other form
Here the same matter is open in Matter workspace, the table's second form. Its whole body is a custom control with its own tabs, while the header, the ribbon and the record tabs stay the same. Which form opens: a link that names one first, then the form the person's application pattern names (if it names one for this table), then their own pick, then the table's default.

What next
- Make fields react to each other, lock a closed matter, add a ribbon button: Form scripts, step by step.
- Add the fields first: Tables and fields.
- Give a section or the whole body your own component: Custom controls.