Dustin Johnson ← Design Primitives
Design Primitive Reference · Part II · October 2026

Forms

Dynamic fields: forms whose fields depend on other fields. Which answers are allowed to reshape the form, where a dependent field appears and how it arrives, what happens to a value whose rule changes underneath it, and what a hidden branch keeps, shows and submits.

I. The Shape of a Form

Two or three governing answers at the top decide a conditional form's shape, set apart from the fields they govern. Everything below them is a leaf conditional, which only reveals or swaps a field where it stands. Thousands of permutations reduce to a handful of shapes, and the user sees one shape change at a time.

Forms with nested conditions and cross-field rules reach thousands of permutations quickly. Kessick's ship-to location form has two governing answers: how the location receives (our trucks, a common carrier, customer pickup) and, for the two that deliver, whether it has one dock or several. That makes five shapes. Under them sit about a dozen leaf conditions: liftgate needed, appointment required, hazmat accepted, a tax exemption. Each leaf adds or swaps one field in place, and together they multiply into roughly 3,000 permutations. Permutations are the product's problem; shapes are the user's. If any answer anywhere could reshape the form anywhere, nobody could predict what the next click does. If only the answers at the top can, the user learns the rule after one try: up there decides the form, down here decides a field.

New ship-to locationRiverside Medical Center
Location
Location nameRiverside Medical Center, Dock 3
Dock hours7:00 am – 3:30 pm
Receiving
Receiving contactMarcus Bell
Receives byOur trucksCommon carrierCustomer pickup
Reshapes Location, above it, and Billing, below
New ship-to locationRiverside Medical Center
This location
Receives byOur trucksCommon carrierCustomer pickup
DocksOne dockSeveral docks
These two answers set the form below. Changing one later asks first.
Receiving
Dock hours7:00 am – 3:30 pm
Liftgate needed
Liftgate fee ($)35.00per delivery, billed by the carrier
The answer that reshapes three sections sits in the middle of one, after two fields it changes · a click on it moves content above the user's eye · Wrong Two governing answers in a hairline panel at the top, 5 shapes between them · below, a leaf (Liftgate needed) opens one field under itself, indented 22 · Right A governing answer inside a section · Wrong Governing answers set apart at the top · Right
Governing answerLeaf conditional
DecidesWhich sections and fields exist: the form's shapeOne field or one row, under itself
How manyTwo or three per form; past that, split the formAs many as the content needs
WhereAt the top, set apart, before anything it governsDirectly above the field it reveals or swaps
ControlA segmented control or radios, every option visibleA checkbox, a radio, a select
Changing itAsks first, naming what is kept and cleared (section XII)Reveals or hides at once; values kept for the session

Set the governing answers apart, and keep them few. They go first, in a group of their own with a hairline around it, the one place on a form where a box earns its ink: it says "these are different" (Forms I §VI otherwise refuses boxes). They use a segmented control or radios, never a select, so every shape on offer is visible before the user picks. Past three governing answers, the form is several forms, and the first answer should choose between them. A leaf changes only what is under it. Liftgate needed opens Liftgate fee and nothing else. A leaf that reaches into another section is a governing answer in disguise; promote it to the top. Changing a governing answer is a bigger act than ticking a leaf, and it asks first, in the honesty dialog of Forms I §X (section XII).

Few answers decide the shape, and they sit at the top. Every other condition changes only the field beneath it.

II. How a Field Appears

A dependent field is revealed directly below the control that governs it; that is the default. In a dense grid it swaps in the same slot, or a whole conditional row appears under its governing row. A reserved empty slot is OK in a small parameter panel and nowhere else. Appending at the end, popping in, fading over, appearing above or opening a dialog are Wrong.

New ship-to locationReceiving
CarrierMidstate Freight
Freight classClass 70
Receives byOur trucksCommon carrier
CarrierMidstate Freight
Freight classClass 70
Customer pickup
Dock hours7:00 am – 3:30 pm7:00 am – 3:30 pm
Additional details
CarrierMidstate Freight
Freight classClass 70
CarrierMidstate Freight
Freight classClass 70
Carrier details
CarrierMidstate Freight
Freight classClass 70
CancelSave details
Here, 22 in, under the answer that asked for it Arrived 172px below the answer, past Dock hours Landed on Dock hours, which has focus Inserted above · Dock hours, which had focus, moved down 72
New vendorTax
Tax ID typeEINSSN
EIN36-48152209 digits, like 12-3456789
Legal nameBrightway Paper Products, Inc.
With SSN: label "SSN", format 123-45-6789, same slot
Nitrile gloves, mediumShipping
Package
Case weight (lb)18.5
Cases / pallet40
HazmatYes
UN numberUN1993
Hazard class3
Packing groupIII
Length (in)16
Width (in)10
Height (in)9
The row Hazmat opened
Pricing & reorderNitrile gloves, medium
Freight
Freight / case ($)3.20
LiftgateNo
Liftgate fee ($)
One reserved box: OK in a small panel
Directly below the governing radio, indented 22 · arrives at base 200, height then content · nothing above it moves · Right, the default The slot is stable · the answer changes the label, the format and the helper, not the layout · Right for a dense grid and a narrow column The dependent row appears as a whole row under its governing row · no column reflows around one field · Right An empty disabled box holds the slot · fine for one or two fields in a parameter panel; for a section it is a page of empty boxes · OK · Avoid for a section "Additional details" grows at the bottom · the consequence lands where the user isn't looking · Wrong Popped in with no motion, or faded in with no height change · the user loses their place, or the new fields overlap the next one · Wrong Inserted above the control · every field below it, the focused one included, moves down under the cursor · Wrong, the worst A dialog for two fields · the dependency is hidden behind a click and Save details beside the form's own commit · Wrong, unless the dependent set is a record of its own: that is nesting The eight ways a dependent field arrives
HowGradeWhen
Reveal belowRightThe default: a field or a small group under its control
Swap in the slotRightThe same question asked another way: EIN or SSN, ZIP or postal code
Conditional rowRightA dense grid: the dependent fields as a whole row under the governing row
Reserved slotOK / AvoidOne or two fields in a parameter panel; never a section
Append at the endWrongNever: the consequence is far from its cause
Pop in, fade overWrongNever: no motion loses the place, no height overlaps
Above the controlWrongNever: it moves the focused field
A dialog or drawerWrongOnly when the dependent set is a record of its own, which is nesting

The reveal is the default because cause and consequence touch. The user's eye is on the control they just changed; the field it asked for appears directly under it, indented 22 to the radio's label so it reads as belonging to that answer. The swap suits a question asked two ways: the slot stays put and its label, format and helper change, which is why it is the better choice in a dense grid or a narrow column, where a reveal would push a whole column of fields. The conditional row is the grid's reveal: a hazmat answer opens UN number, hazard class and packing group as a row of their own under its row, so no column reflows around one field (Forms I §V). A reserved slot, an empty disabled box waiting for its condition, keeps a small parameter panel still; a section of them is noise, every empty box a question the form isn't asking.

The Wrong placements fail on the same axis, distance from the cause. Appending to an "Additional details" group at the end puts the consequence where the user isn't looking, and they may submit without ever seeing it. A field that pops in with no motion makes the content below it jump, and the user loses their place; one that fades in over its slot without the height changing lands on the next field. A field inserted above its control is the worst of them: everything below moves, including the field with focus, under the user's cursor (section III). A dialog hides two fields behind a click and adds a second Save; it is right only when the dependent set is a record of its own, a new contact with a name, email and phone, which is nesting, not a condition.

Reveal it under the answer that asked for it. Swap it in place where space is tight; a whole row in a grid. Never at the end, never above, never in a box of its own.

III. Where It Appears

Dependent fields appear below their governing control, never above it, and never move the field that has focus. When a value the user is typing triggers a field, the field appears after the one being typed in.

New ship-to locationAddress
Street address1350 Wayne Ave, Dock 3
Outside our delivery area: deliveries go by common carrier, with a surcharge.
Outside our delivery area: deliveries go by common carrier, with a surcharge.
Receiving contactMarcus Bell
Type a ZIP outside the Dayton area, like 60601. The notice appears when the fifth digit lands; the readout says how far the field you're typing in moved. The consequence after the field · Live · Right The consequence before the field · Live · Wrong

Below, because reading and the cursor both run downward. The user's attention is on the control, and the next thing they read is what is under it; a field revealed there is found without looking. Above, the new content pushes the control and everything after it down, and the field the user is typing in moves under their cursor: try it, and at this width the ZIP field drops 60, the notice and its gap, as the fifth digit lands. A click aimed at it a moment later hits the notice. The rule has no exceptions: a dependent field never appears above its governing control, and nothing appears above the field with focus. A notice tied to a value (an address outside the delivery area, a quantity over the pallet limit) follows the same rule; it is a dependent element like any other, and it sits under the field whose value caused it, in the place where Forms I §VIII puts a field's message.

Under the cause, after the field being typed in. Nothing ever appears above the focus.

IV. Arrival & Removal

A dependent field arrives at base 200 on the enter curve: the height opens from 0 and the content fades in behind it. It leaves one step faster, fast 150 on the exit curve. Under reduced motion the height changes at once and the fade stays.

New ship-to locationReceiving
Dock hours7:00 am – 3:30 pm
Tick Liftgate needed: the rows open over 200ms on cubic-bezier(0, 0, 0.2, 1) while the fields fade in; untick and they close over 150ms on cubic-bezier(0.4, 0, 1, 1). A reveal that opens and closes · Live · Right

The height moves because the push must be seen. The fields below a reveal have to make room, and a user who sees them move knows what changed; a jump hides it. Motion I §V allows this one layout animation and says how: animate grid-template-rows from 0fr to 1fr, which runs the curve over the true height, never a max-height guess. The content's opacity runs with it, so the fields appear as the space opens instead of sliding in already drawn. The durations come from Motion I §II: an arrival is base 200, and a removal is one step faster, fast 150, because the user has already stopped looking at what leaves (§IV). Reduced motion keeps the transition and drops the travel (Motion I §X): the rows change at once and the fields still fade in over 200, so the change is never silent.

Open the height, fade the content behind it: base 200 in, fast 150 out. Under reduced motion, no travel, the fade kept.

V. Hidden, Disabled, Read-only

An inapplicable field is hidden by default. Disabled is for a field that exists in every shape but doesn't apply right now, and only when there are few of them; read-only is for a field that applies and can't be changed. A hidden or disabled field keeps its value for the session, shows none, and is never submitted or validated.

Liftgate needed
Dock hours7:00 am – 3:30 pm
Hidden · Liftgate fee absent
Appointment required
Appointment windowApplies when an appointment is required
Disabled · empty, with its reason
Ships fromDayton Distribution CenterSet by the ZIP code's region
Read-only · applies, can't be changed
Hidden: kept in the session, not shown, not submitted, not validated · Disabled: the same, with an empty box at .45 opacity and the reason in its helper · Read-only: shown at 17.4:1, submitted, validated by the server
HiddenDisabledRead-only
ForA field that doesn't exist in this shape: the defaultA field in every shape that doesn't apply now; a few at mostA field that applies and is fixed or derived
Its valueKept for the sessionKept for the session; the box emptyShown
SubmittedNeverNeverYes
ValidatedNeverNeverBy the server only

Hide by default; disable only where the field's presence is information. Inputs II §IX drew the line between the two achromatic states: read-only is information to read and copy, disabled is a control that exists and can't be used now. On a conditional form, disabled earns its place only when the field belongs to every shape and its absence would make the form look incomplete, the appointment window on a ship-to that may or may not need one, and only for a few such fields; a column of grey boxes is a form the user must read twice. Everything else that doesn't apply is hidden. A disabled box shows no value. A value in a disabled field reads as something that will be submitted, and it won't be; the value waits in the session and returns when the field is enabled (section VII). Neither is submitted or validated. What the form sends and checks is the visible, applicable set, and nothing else (section XI).

Hidden is the default for what doesn't apply; disabled, for the few fields every shape has; read-only, for what applies and is fixed. Only what applies is sent.

VI. When the Rule Changes Under a Value

When a governing change makes a typed value invalid or an optional field required, the value stays. The field is marked invalid, with a message that names the new reason; the required mark appears; the summary lists it. The one exception is a select whose chosen option no longer exists: it empties to its placeholder and says why in its helper.

New ship-to locationReceives by: Common carrier · just changed
3 things changed with Common carrier
  • Pallet height is over the carrier's limit
  • Dock phone is now required
  • Service level was cleared
Max pallet height96inchesCommon carrier takes pallets up to 84 in
Dock phone (required)Dock phone is required for common carrier
Service levelWhite gloveChoose a service levelCleared: White glove isn't offered by common carrier
The 96 the user typed is gone, the select is empty with no reason, the phone isn't marked · they find out at submit, or never · Wrong 96 and White glove still look accepted · the form will refuse them on submit for a reason it already knew · Wrong 96 kept, marked, the new limit named · the phone marked required with its reason · the select empty because its option no longer exists, and it says so · the summary lists all three · Right After switching to common carrier

Never silently clear a typed value. The user typed 96 for a reason, and the new limit may be the thing that's wrong, not the value; clearing it takes away both the work and the evidence. So the value stays and is marked invalid, with a message that names the new rule and the answer that brought it ("Common carrier takes pallets up to 84 in"), as Forms I §VIII asks of every message. A field that became required gets its mark at once ("(required)" here, this form marking the rarer kind, as Forms I §VII has it) and its message, and the summary at the top lists every field the change touched. Leaving them looking valid is the other Wrong: the form knows, and it waits until submit to say so. The exception is the select whose option no longer exists. Its value is an option, not text the user wrote; when the option is gone from the list it can't stay selected, so the select empties to its placeholder and the helper says what was there and why it went ("Cleared: White glove isn't offered by common carrier"). Select I §V already refuses a placeholder that smuggles in a value.

Keep what was typed and say why it no longer fits. Empty only a selection whose option is gone, and say so where it was.

VII. Enabling & Disabling in Place

A disabled field that enables under a condition shows an empty box while disabled and gets its value back when enabled; the value waits in the session between the two. A disabled box never shows a stale value.

New ship-to locationReceiving
Both apply while an appointment is required
Dock hours7:00 am – 3:30 pm
Untick Appointment required: both fields disable and empty, and their values wait. Tick it again and they come back. Switch to "Stale value shown" to see the Wrong. Disable, re-enable, values restored · Live · Right, with its Wrong

Empty while disabled, restored when enabled. A disabled box with "8:00 – 10:00 am" in it says the window is set and will be sent; it won't be, because a disabled field is never submitted (section V), so the box lies. Emptying it on disable and restoring it on enable tells the truth both ways and costs the user nothing: they never retype a value the form knew. The values live in the session, not in the record and not in a draft, unless the product keeps branches on purpose (section XIII). This is the pattern for the few fields that exist in every shape; for anything else, hide and reveal (section II) is quieter. The helper says when the fields apply, so the condition is readable before the user looks for it, as Forms I §I asks of a toggle's helper.

A disabled box is empty. The value waits and comes back when the field applies again.

VIII. Dependent Selects

A select whose options come from another answer (state, then county; category, then subcategory) reloads its options when that answer changes, says so while they load, and empties a selection that isn't in the new list, saying what was cleared. Its value is the option, never its label.

New ship-to locationTax jurisdiction
Choose Hamilton County, then switch the state to IN. Indiana has a Hamilton County too, and it is still cleared: a different county with the same name. State, then county · Live · Right

The value is the option, never its label. Hamilton County, Ohio and Hamilton County, Indiana share a name and nothing else: a different tax rate, a different jurisdiction. A select that keeps "Hamilton" across the state change because the label matches has kept the wrong value and shows it as right. So a dependent select compares option identities, and when the old one isn't in the new list it empties to its placeholder with the reason in its helper, the exception from section VI. While the options load, it says so in the helper, "Loading Indiana's counties…", and the trigger keeps its size; Select I §IX calls a spinner row honest and a trigger that silently refuses to open broken, and long lists that load as you type are Select II §VII's. When the parent is empty, the child shows its placeholder with the dependency in its helper ("Choose a state first"), not a disabled box with no reason.

Reload the options when the parent changes, say so while they load, and clear by identity, saying what went.

IX. Repeating Groups

A repeating group (an order's line items, a vendor's contacts) starts with one empty row, adds the next with a button under the last row, removes a row in place with Undo, and states its limit before it is reached.

New orderRiverside Medical Center
ItemCasesLine total

Add a line, choose an item, remove one: the row closes and Undo takes its place until you do something else. The limit is 5 lines here. Line items: one empty row to start, Add under the last, remove with Undo · Live · Right

Start with one empty row. An empty list with an "Add line" button asks the user to do something before they can do the thing they came for; one empty row is already the answer to "what goes here?". Add goes under the last row, where the next row will appear, and focus moves into the new row's first field, so the keyboard user keeps typing. Remove is in the row and doesn't ask: a line is cheap to recreate and removal is reversible, so the row is replaced in place by "Line 2 removed · Undo", which holds its place until the next action, the undo-before-confirm of Forms I §XII. The last row can't be removed, only cleared. The limit is said before it is reached ("3 of 5 lines"), and at the limit Add stays visible with the reason beside it, never a disabled button with none. Each row is a small grid on the form's columns, its numbers right-aligned, with a derived line total (section X) and the running total under the group (Forms I §X). Reordering rows by drag belongs to Drag, Resize & Reorder (planned).

New orderRiverside Medical Center
ItemCasesLine total
No lines yet.
Nitrile gloves, medium25$1,284.50
Trash liners, 40–45 gal4$155.60
Add lineAdd line
Remove this line?
Trash liners, 4 cases, $155.60.
Keep lineRemove line
The user's first act is to press Add before they can choose an item · one empty row would have been the answer · Wrong A dialog for a line that costs four seconds to recreate · Undo in place is cheaper and safer · Avoid A grey Add with no reason · the limit is found by failing · Wrong No first row · Wrong A confirmation for a reversible removal · Avoid The limit hidden in a disabled button · Wrong
One empty row to start, Add under the last, Remove in place with Undo, and the limit said before it bites.

X. Derived & Calculated Fields

A value the form calculates is shown, not edited: read-only text, right-aligned, updating as its inputs change. Where the user may override it, the override is a deliberate act that says so and offers the way back to the calculated value.

New orderLine 1
Line total$1,284.50
List price ·
Change the cases: the line total follows. Press Override to set the price yourself; the helper then names the list price and offers Reset to list. A derived total, and a price that can be overridden on purpose · Live · Right

Derived values are text, not fields. A line total in an input box invites typing a total the form will recalculate over, so it is read-only text in the field's slot, right-aligned on the same edge as the numbers above it, and it changes as the cases change, the running result of Forms I §V. An override is a mode, said in the helper. The price per case comes from the list, so it starts calculated, with its box quiet; Override makes it a field, and from then on the helper says "Overridden · list $51.38 · Reset to list", so the user and whoever approves the order can see that this price was set by hand. A calculated field that silently accepts a typed value and then recalculates over it on the next change is the Wrong: the user's number disappears the moment they touch the quantity.

Show calculated values as text. Let the user override one only on purpose, say so in its helper, and keep the way back.

XI. Validation Across Fields

Validation runs on the visible, applicable set only. A cross-field rule's message names the governing answer that made it apply, and the summary on a conditional form lists only what the user can see and fix.

New ship-to locationReceives by: Common carrier
3 things to fix before adding2 things to fix before adding
  • Truck route is required
  • Freight class is required
  • Freight class is required for common carrier
  • Liftgate fee is required
  • With a liftgate, the fee is required
Freight classChooseFreight class is requiredFreight class is required for common carrier
Truck route belongs to Our trucks: not on screen
The summary counts a hidden branch's field the user can't see or reach · and two rules that don't say what made them apply · Wrong Only visible fields, but "required" with no reason, on a field that was optional a moment ago · Avoid Only the visible set · each message names the answer that made it apply · every item links to its field · Right The summary on a conditional form

Check what applies, and say why it applies. A hidden field is never validated (section V), so a summary that counts "Truck route is required" on a common-carrier location is asking for a field the user can't see and shouldn't fill. A field that is required only because of another answer says so: "Freight class is required for common carrier" tells the user the rule and the way out of it, where "Freight class is required" leaves them wondering why a field that was optional a moment ago isn't now. A cross-field rule names both sides in words the user knows ("With a liftgate, the fee is required"). The rest is Forms I §VIII: format on blur, completeness on submit, the message under its field in the UI voice, the summary linking to each one, the label neutral (Inputs II §XII). A cross-field check runs when the second of its fields is left, never while either is being typed.

New ship-to locationReceiving
This location
Receives by
Press Add location: only the visible fields are checked, and each message names the answer that made it apply. Switch to Our trucks and press it again. Validation on the visible set · Live · Right
Validate only what the user can see. When a rule applies because of another answer, the message names that answer.

XII. Changing a Governing Answer

Changing a governing answer once its branch holds answers asks first: it says what is kept, what is cleared from the record, and that switching back this session restores it. Keep the current answer is the focused, default way out. An autosaving form saves after the answer, never before it.

New ship-to locationDraft · saved 2:02 pm
This location
Receives by
Dock hours7:00 am – 3:30 pm
Choose Our trucks. The dialog names what stays, what leaves the record, and what comes back if you switch again. The draft saves only after you answer. The honesty dialog on a governing change · Live · Right

A governing answer reshapes the form, so changing it asks. It is the same dialog Forms I §X gave the stepper that flags, said on one page: the title is the change ("Change to our trucks?"); the body lists what is kept (dock hours, the receiving contact), what is cleared from the record (carrier, freight class), and that switching back this session brings them back; Keep common carrier has focus, so Enter and Escape both mean "no". A governing answer whose branch is still empty changes at once with nothing to ask, as Modal I §IX lets a clean surface close. Autosave waits for the answer. A document or a draft that saved the moment the radio moved would have written the new shape, and cleared the old branch from the record, before the user had agreed to anything; it saves after Change, and Keep saves nothing because nothing changed.

Ask before a governing change, naming what stays, what goes and what comes back. Save after the answer, never before.

XIII. Branches, Drafts & Memory

Keep each branch's values for the session, so switching back restores them; the first visit to a branch shows its defaults. The record and the draft store only the chosen branch, unless the product deliberately keeps branches, in which case the draft stores them and says nothing about it.

New ship-to locationReceiving
This location
Receives by
The record, if saved now
Change the truck route, switch to Common carrier, set a carrier, switch back: the route you typed is there. The record below holds only the branch that is chosen. Per-branch memory for the session · Live · Right

Switching branches is exploring, not deciding. A user comparing two ways a location could receive should be able to fill one, look at the other and come back without retyping. So each branch keeps its values for the session, the first visit to a branch shows its defaults, not a blank, and only the chosen branch reaches the record. The same holds wherever a choice opens its own set of options:

DomainThe governing choiceIts branchKept on switching back
Lunch orderCheeseburger or chicken sandwichDoneness, cheese; bun, sauceThe burger as you built it
Airline bookingCabin classSeat, meal, bagsThe seat you chose in economy
Car configuratorTrim levelWheels, interior, packagesThe options on the trim you left
Ad campaignObjectiveAudience, duration, price targetsEach objective's targets
Kessick ship-toReceives byRoute; carrier and class; pickup contactEach branch's fields

The record and the draft save what applies. A ship-to saved as common carrier stores the carrier and freight class and nothing of the truck route; the shadow values of the branches not chosen live in the session and end with it. A product that wants per-branch memory across sessions, an ad platform that keeps every objective's targets while a campaign is drafted, stores the branches in the draft (Forms I §IX) and says nothing about it: the user sees their values come back, which is the whole point, and never sees a hidden branch in a review or a record (section XIV). Autosave, as section XII has it, follows the governing answer, never precedes it.

Remember every branch for the session; store only the one chosen. Keep branches across sessions only on purpose, in the draft, and quietly.

XIV. The Review & the Record

A review and a saved record show what applied, and nothing from a branch that wasn't chosen. A hidden value shown in a review reads as something that was submitted.

Riverside Medical Center, Dock 3Ship-to location
Receives by
Common carrier
Carrier
Midstate Freight · Class 70
Liftgate
Needed · $35.00 per delivery
Truck route
Dayton north
Pickup contact
—
Dock hours
7:00 am – 3:30 pm
"Truck route: Dayton north" on a common-carrier location · the dispatcher reads it and schedules a truck · Wrong Only the chosen branch and the leaves that applied · the record reads as one consistent location · Right The saved record

What the user sees after saving is what was saved. The review before a commit and the record after it list the governing answers, the chosen branch and the leaves that applied, in the form's order; a hidden branch's values are not "—" rows and not greyed rows, they are absent. A truck route on a common-carrier location is worse than noise: the next person to read it acts on it. If the session still holds a shadow value, it stays in the session.

The review and the record show the shape that was chosen, and nothing of the others.

XV. Mobile & Dark

On a phone a reveal pushes the content below it down, which is fine; the swap is better than the reveal wherever the column is narrow, because it moves nothing. The indent of a dependent group shrinks to the radio's own inset. In dark mode the rules of Forms I's dark section stand unchanged.

‹ BackShip-to
Receives byOur trucksCommon carrier
CarrierMidstate Freight
Freight classClass 70
Customer pickup
Add location
A reveal on a phone · Right
‹ BackNew vendor
Tax ID typeEINSSN
EIN36-48152209 digits, like 12-3456789
Legal nameBrightway Paper Products, Inc.
Add vendor
A swap on a phone · Right, the better of the two
Phones at 375, drawn at .6 · the reveal pushes Customer pickup and everything after it down by two fields · the swap changes a label and a format and moves nothing

A reveal on a phone is still right; a swap is better. In a 343 column every dependent field takes the full width, so a reveal of two fields pushes the rest of the screen down by two rows; the user sees it happen, which is acceptable, and the governing control stays where their thumb is. Where the same question is asked two ways, the swap moves nothing at all, which is why a narrow column prefers it. The reveal's indent stays at 22, the radio's own inset, so the dependent fields still read as belonging to their answer. A dialog for the dependent fields, Wrong on a desktop, is worse on a phone, where it becomes a full-screen sheet (Modal I §XIII). Dark mode adds nothing new: the governing panel's hairline is white at .14, the fields' edges white at .40, the error the light ink at 2px, as Forms I §XV measured them; the indent, not a tint, marks a dependent group, so it reads the same in both modes.

New ship-to locationReceiving
This location
Receives byOur trucksCommon carrierCustomer pickup
Liftgate needed
Liftgate fee ($)With a liftgate, the fee is required
Light · panel hairline .14, 1.31:1 · segment and field edges .52, 3.22:1 · the selected segment ink on #fff, 17.4:1 · error 2px ink Dark · on #1a1a1a: panel hairline white .14, 1.53:1 · segment and field edges white .40, 3.83:1 · the selected segment #ecebe8 · error 2px #ecebe8, message 14.6:1 · the dependent group marked by its 22 indent, no tint Light · Right Dark · Right
On a phone, reveal if you must and swap where you can. In the dark, the indent still does the grouping.

XVI. The Checklist

Build each conditional form in this order; each step assumes the ones before it and everything in Forms I's checklist.

1
Find the governing answersTwo or three answers that decide which sections and fields exist. Set them apart at the top in a hairline panel, as segmented controls or radios. More than three: split the form.
2
Make every other condition a leafA leaf changes only the field or row under it. A leaf that reaches into another section is a governing answer: promote it.
3
Reveal below, swap in place, a row in a gridDirectly under the control, indented 22. Swap where space is tight; a whole conditional row in a grid. A reserved slot only in a small panel. Never at the end, above, popped in, faded over, or in a dialog.
4
Never move the focusNothing appears above the field with focus; a value-triggered field appears after the field being typed in.
5
Open in, close fastergrid-template-rows 0fr → 1fr at base 200 ease-enter, content fading with it; out at fast 150 ease-exit. Reduced motion: no travel, the fade kept.
6
Hide what doesn't applyHidden by default. Disabled only for the few fields every shape has, empty, with the reason. Read-only for what applies and is fixed. Hidden and disabled are never submitted or validated.
7
Keep values when the rule changesA typed value stays, marked with the new reason; a field that becomes required shows its mark; the summary lists both. Only a select whose option is gone empties, saying why.
8
Disable empty, enable restoredNo stale value in a disabled box; the value waits in the session and comes back.
9
Reload dependent selects by identitySay "Loading…" in the helper; clear a selection not in the new list, by option, not label, and say what went.
10
Repeat with one row to startAdd under the last row, focus into the new one; remove in place with Undo; the limit said before it is reached.
11
Show derived values as textRead-only, right-aligned, live. An override only on purpose, named in the helper with the calculated value and a way back.
12
Validate the visible setMessages name the governing answer that made a rule apply; the summary lists only what the user can see and reach.
13
Ask before a governing changeKept, cleared from the record, restored this session; Keep focused. An empty branch changes at once. Autosave after the answer.
14
Remember branches, store oneEach branch's values for the session; defaults on a first visit; the record and draft hold the chosen branch, or every branch quietly if the product means to.
15
Review what appliedThe review and the record show the chosen shape and nothing of the others.

Steps one, two, six and thirteen are the judgement; the rest are contracts. The audit: list every condition on the form and mark which answers reshape it; if more than three do, split it. Change each governing answer with its branch filled and read what the form says; type into the field below a leaf and see whether anything above it moves; switch branches and back and count what you retype; submit and read the record for a value that shouldn't be there.

The boundaries, stated once. Forms I owns the form itself: its kind, column, labels, widths, grid, validation, saving and submit; this part adds only what changes when fields depend on fields. Motion I owns the curves and the accordion; Select I and Select II own the select's states and long lists; Modal I owns the dialog that asks. Loading I takes the wait while options load; Drag, Resize & Reorder (planned) takes reordering rows; Copy & Tone (planned) takes the words of the messages. What every rule here comes back to: the user should be able to predict what the next click will change.

Part II of Forms.
A few answers decide the shape; every other answer changes only what is under it.