A form in the mobile app is an inset grouped list whose rows are fields. There is no custom form chrome: the platform draws the field, the keyboard and the card, and the app decides the label, the hint, the error and when the submit action is enabled. This page records how the nine forms make those decisions, so a new form can match them.
The form recipe
A sheet or pushed screen holding list appearance="auto" listStyle="inset-grouped".
One section per question. The section header is the label ("Seed site URL", "Server URL", "Recovery phrase or key file"). The footer is the hint.
The field is an input, textarea or select with a placeholder that shows the shape of the answer and an aria-label that repeats the label.
Submit is either a button in the navigation bar (sheets) or a row at the end of the list (pushed screens and long forms). It is disabled until the form can succeed.
While the request runs, the submit label changes to a present participle with an ellipsis: "Opening…", "Creating…", "Importing…", "Checking…", "Saving…", "Posting…".
Every form
Nine screens are forms: Open site, Server, Agent server, New agent, Providers, Create identity, Import identity, Edit profile and Email notifications. Their fields, submit controls and draft behaviour are tabulated on Every form.
Labels
Three label styles exist, chosen by how many fields share a section:
Section header when the section holds one field (most forms).
Placeholder only for an optional or self-evident field: "Name (optional)", "Agent name", "Provider name", "API key".
Visible label above the field in ProfileForm, where two fields share one section: "Display name" and "Summary" in -exact-subheadline.
Identifier-like fields turn off help that would corrupt them: autocapitalize="none" autocorrect="off" on names, server addresses and the vault URL, plus spellcheck=false on the recovery phrase.
Validation and errors
Timing | Where the message appears | Forms |
|---|---|---|
As you type | The field's section footer, red when invalid | Import identity (the check message replaces the hint) |
After the first edit | A red line above the submit row | Edit profile: "Enter a display name." only once the field has been touched |
After submit | The footer of the field's section, replacing the hint, in | Server, Create identity, Rename key |
After submit | A section of its own under the fields, in | Open site (with |
Rules that hold everywhere: errors are text in -exact-system-red, never an alert; editing the Open site field clears its error; an error never clears what the person typed. Success is quiet: the sheet closes, or a secondary line appears ("Profile updated"), with a haptic on profile save.
Do and do not
Do disable submit instead of showing an error for an empty form.
Do put the hint in the footer and replace it with the error, so the layout does not jump.
Do not validate a field before the person has touched it.
Do not use an alert for a validation error. Alerts are for confirmations.
Why
The form is the platform's Settings pattern, which the Exact guide prescribes ("A settings screen is a grouped list", contract-for-humans.md). Disabling submit and showing errors inline follows Honest state: the screen always says what is needed next. Inferred: the two submit placements follow the presentation, with bar buttons on sheets, where Cancel already sits in the bar, and row buttons on pushed screens.
Related
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime