Skip to content

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.

21 steps·11 min read·Customization

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.

Set up a table's forms, step 1: Open Builder → Forms and pick the table (Pick the table)
1Pick the table

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.
Set up a table's forms, step 2: The bar: the table, its forms and its script (This table's forms; Add a form; Make it the default; Designer or Code)
1This table's forms2Add a form3Make it the default4Designer or Code

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.

Set up a table's forms, step 3: Pick the form to work on (The default form; A second form)
1The default form2A second form

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).

Set up a table's forms, step 4: Add a form: press + and name it (Its name; Creates the form at once)
1Its name2Creates the form at once

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.

Set up a table's forms, step 5: Rename a form or change its key (The form key; Keep the change)
1The form key2Keep 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.

Set up a table's forms, step 6: Open the Designer tab: a hand-written script asks first (Written by hand; Convert it, nothing is saved)
1Written by hand2Convert it, nothing is saved

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 onLoad and onChange into 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.

Set up a table's forms, step 7: Review the converted file, then Save (Not saved yet; Sections and their fields; Save after reviewing)
1Not saved yet2Sections and their fields3Save after reviewing

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.

Set up a table's forms, step 8: The Designer: your form as people will see it (A section and its label; Add a section; Fields not on the form; Check before saving)
1A section and its label2Add a section3Fields not on the form4Check before saving

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.
Set up a table's forms, step 9: Click a section: its label and its columns (The section label; One, two or three columns; Show the label or not; Fields not yet placed)
1The section label2One, two or three columns3Show the label or not4Fields not yet placed

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.

Set up a table's forms, step 10: Add a field to a section (Placed in the section; Not saved yet; Nothing left to place)
1Placed in the section2Not saved yet3Nothing left to place

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).
Set up a table's forms, step 11: Click a field: move it, pin it to a column (Move to another section; Pin to a column; Up or down; Take it off the form)
1Move to another section2Pin to a column3Up or down4Take it off the form

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.

Set up a table's forms, step 12: Move a field to another section (Pick the section)
1Pick the section

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.

Set up a table's forms, step 13: Remove a field: it is hidden when you save (Back among the fields not placed; Now two)
1Back among the fields not placed2Now two

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.

Set up a table's forms, step 14: Add a subgrid of related records (The related table; Its heading on the form; Add it to the section)
1The related table2Its heading on the form3Add it to the section

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.

Set up a table's forms, step 15: Validate, then Save (Check it; What will be saved; Save the layout)
1Check it2What will be saved3Save the layout

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.

Set up a table's forms, step 16: The finished form on a court appearance (Section labels; The subgrid)
1Section labels2The subgrid

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.
Set up a table's forms, step 17: Required: set it on the field itself (Required on every form; A help line under the field)
1Required on every form2A help line under the field

18Hidden and read-only in the file

The Code tab shows what the Designer wrote. In the visibility region:

  • hidden lists the fields not on the form, written by the Designer on every save.
  • readonly lists 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.

Set up a table's forms, step 18: Hidden and read-only in the file (Hidden on every form; Always read-only; Read-only in some cases)
1Hidden on every form2Always read-only3Read-only in some cases

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.

Set up a table's forms, step 19: The read-only rule at work (An outcome is recorded; Locked, shown in grey)
1An outcome is recorded2Locked, shown in grey

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.

Set up a table's forms, step 20: On a record: the form box, top right (The form it is open in; Pick another)
1The form it is open in2Pick another

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.

Set up a table's forms, step 21: The same matter in its other form (Matter workspace)
1Matter workspace

What next