LearnNewsExamplesConnect
Frontmatter
assigneesdaichunghy
createdAtNov 18, 2026, 3:15 PM
updatedAtNov 19, 2026, 9:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/21338
authorneo-opus-ada
commentsCount2
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[ ] 21447 Buttons, Menus & Toolbars shows a context menu, a breadcrumb and a paging toolbar working, [ ] 21474 More components: a streaming markdown card, process and splitter tiles, [ ] 21459 Lists & Galleries part 2: drag reorder, the animated list, three tiles
closedAtNov 19, 2026, 9:55 PM

A sign-up form validates as you type and lists what is wrong

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementhelp wantedgood first issueai
neo-opus-ada
neo-opus-ada commented on Nov 18, 2026, 3:15 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

#21140's content table, Forms & Fields, new for Engine 14: "+ Validation: a sign-up form that validates as you type, blocks submit and lists what is wrong." Lane epic #21329.

The Problem

A visitor asks: how does a Neo form tell the user what is wrong, and when? No example answers it. Form-level validation appears only as the form app's page marks, and no entry shows a submit being blocked and its errors listed.

The Architectural Reality

  • form.Container has validate() (src/form/Container.mjs:552), isValid() (:321), getSubmitValues() (:253) and reset() (:358).
  • Fields carry required and their own checks: the email field's address rule, and minLength and maxLength on text fields.
  • Design authority: n/a, because this is a new example and calls no existing behaviour wrong.

The Fix

A new example under examples/form/: a sign-up form (name, email, password and its repeat, a terms checkbox). It validates each field as the visitor types, blocks Sign up while anything is invalid, lists the problems beside the button, and shows the submitted values when it passes. Add a record and a caption that names the question.

Acceptance Criteria

  • AC-1: Each field shows its error as the visitor types or leaves it.
  • AC-2: Sign up stays blocked while a field is invalid, and the form lists what is wrong.
  • AC-3: A valid form shows its submitted values.
  • AC-4: The example works at 1440 × 900 and 390 × 844, in both themes, by keyboard.
  • AC-5: A record with a caption, and frames at both sizes on the pull request.

Out of Scope

  • The address-and-payment form and the form app (sibling leaves under #21329).

Related

Parent #21329 · #21140.

Live latest-open + closed sweep with #21329's at 2026-11-18T14:12Z ("form validation example"): no equivalent.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Retrieval Hint: "sign-up form validation example validate isValid getSubmitValues blocks submit lists errors"

⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code

daichunghy
daichunghy Nov 18, 2026, 10:17 PM

I'd like to take this one. I've prepared the example locally, following the existing form examples. It adds a sign-up form under examples/form/validation with live per-field validation as you type, a Sign up button that's disabled while any field is invalid, an error list beside the button, and submitted values displayed with the password masked.

The portal record, capture tile and SEO route are included, along with unit tests and e2e Playwright specs.

I'll open the PR against dev right away.

  • 2026-11-18T21:21:39Z @github-actions assigned to @daichunghy

@github-actions - 2026-11-18T21:21:40Z

Thanks for claiming this, @daichunghy, and welcome! Assigned to you — you can start now.

Your claim reserves this issue for 3 days (any comment here resets the clock; we still merge the first approve-worthy PR if another lands first or a claim goes quiet).

An automatic reply. How claims work [QUARANTINED_URL: github.com]

daichunghy referenced in commit 6d88e27 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:30 PM
daichunghy referenced in commit a56781a - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:31 PM
daichunghy referenced in commit dea8a57 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:32 PM
daichunghy referenced in commit bed9070 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:32 PM
daichunghy referenced in commit afff155 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:33 PM
daichunghy referenced in commit d204b30 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:33 PM
daichunghy referenced in commit 34b899f - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:42 PM
daichunghy referenced in commit 060ae87 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:43 PM
daichunghy referenced in commit e7f7281 - "feat(examples): a sign-up form validates as you type and lists what is wrong (#21338)" on Nov 18, 2026, 10:44 PM
daichunghy cross-referenced by PR #21405 on Nov 18, 2026, 10:45 PM