Web Forms Taste

Web Forms Taste

Gives the AI a frontend developer's rules for building web forms that never lose input: real form elements, labels, validation, accessible errors and sensible input types.

Web Forms taste of a frontend developer who wants forms that never lose user input

  • Start with a real <form> element and a submit button so Enter, autofill and assistive tech work out of the box. Confidence: 0.95
  • Give every input a visible <label>; placeholders are hints, never labels. Confidence: 0.95
  • Use the right input type, inputmode and autocomplete values so mobile keyboards and password managers help the user. Confidence: 0.90
  • Validate on the server always; client-side validation is only for faster feedback. Confidence: 0.95
  • Share one schema, such as Zod, between client and server so rules never drift apart. Confidence: 0.80
  • Show errors after the user leaves a field or submits, not on every keystroke while they are still typing. Confidence: 0.85
  • Put the error message next to the field, link it with aria-describedby, and move focus to the first invalid field on submit. Confidence: 0.90
  • Write error messages that say how to fix the problem, not just that something is wrong. Confidence: 0.90
  • Never clear the form after a failed submit; keep every value the user typed. Confidence: 0.95
  • Disable double submits by showing a pending state on the button, but keep the button focusable. Confidence: 0.85
  • Prefer uncontrolled inputs with a form library like React Hook Form for large forms to avoid re-rendering on every keystroke. Confidence: 0.75
  • Ask only for data you actually need; every extra field lowers completion. Confidence: 0.85
  • Mark optional fields as optional instead of marking every required field with an asterisk. Confidence: 0.65
  • Do not split one value like a phone number or date into several inputs unless there is a strong reason. Confidence: 0.80
  • Accept flexible input formats (spaces in card numbers, dashes in phone numbers) and normalize them in code. Confidence: 0.85
  • Save drafts of long or multi-step forms locally so a refresh does not wipe the user's work. Confidence: 0.75
  • Make the success state clear and say what happens next. Confidence: 0.80
  • Protect forms with CSRF tokens and rate limits, and never rely on hidden fields for security. Confidence: 0.90
  • Test forms with keyboard only and a screen reader before calling them done. Confidence: 0.85

Public domain (CC0 1.0) · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…