Typeahead validation with focus handling: references/2025-10-20-turbo-frames-typeahead-validation.md
External form controls in frames: references/2026-02-03-turbo-frames-external-form.md
Stimulus action parameters for forms: references/2024-01-16-stimulus-action-parameters.md
Use references/INDEX.md for the full catalog.
Escalate to Neighbor Skills
Navigation/history/cache behavior: use hwc-navigation-content
WebSocket or Turbo Stream push updates: use hwc-realtime-streaming
Media upload/playback behavior: use hwc-media-content
Generic UX polish (spinners/progress/transitions): use hwc-ux-feedback
General Stimulus API design questions: use hwc-stimulus-fundamentals
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: thehotwireclub-hotwire-club-skills-hwc-forms-validation3description: Forms & Validation4---56# Forms & Validation78Implement form-centric Hotwire workflows with Turbo Frames and Stimulus.910## Core Workflow11121. Identify the form flow: create/edit, inline edit, typeahead, modal form, or external controls.132. Wrap the form interaction scope in a Turbo Frame when validation errors must rerender in place.143. Return `422` for validation failures and `303` for successful redirects.154. Handle post-submit behavior with `turbo:submit-end` only when Turbo defaults are insufficient.165. Preserve user context during rerenders (focus/caret/selection).1718## Guardrails1920- Keep one source of truth for input state; avoid duplicate controls across frame and non-frame DOM.21- Use the HTML `form` attribute for controls rendered outside the target `<form>` hierarchy.22- Avoid firing submit logic on every keystroke without debounce/throttle.23- Keep post-submit behavior explicit when form responses update only a frame.2425## Load References Selectively2627Open only the file needed for the current request.2829- Inline editing: `references/2024-02-27-turbo-frames-inline-edit.md`30- Modal validation flows: `references/2024-05-21-turbo-frames-modals-validation.md`31- Typeahead search: `references/2023-11-07-turbo-frames-typeahead-search.md`32- Typeahead validation with focus handling: `references/2025-10-20-turbo-frames-typeahead-validation.md`33- External form controls in frames: `references/2026-02-03-turbo-frames-external-form.md`34- Stimulus action parameters for forms: `references/2024-01-16-stimulus-action-parameters.md`3536Use `references/INDEX.md` for the full catalog.3738## Escalate to Neighbor Skills3940- Navigation/history/cache behavior: use `hwc-navigation-content`41- WebSocket or Turbo Stream push updates: use `hwc-realtime-streaming`42- Media upload/playback behavior: use `hwc-media-content`43- Generic UX polish (spinners/progress/transitions): use `hwc-ux-feedback`44- General Stimulus API design questions: use `hwc-stimulus-fundamentals`4546---47> Converted and distributed by [TomeVault](https://tomevault.io/claim/thehotwireclub) — claim your Tome and manage your conversions.48<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/thehotwireclub-hotwire-club-skills-hwc-forms-validation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Forms & Validation It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.