Design and UI
Make a form that doesn’t lose people
Errors appear before typing, a failed submit wipes the fields, and a double click sends twice.
- What you get
- A form that validates at the right moment, keeps what was typed and can’t be sent twice.
- Paste it into
- Your AI tool, in your project
The prompt
Review [form] and make it behave well. Check each of these and show me what happens today: when errors first appear (it shouldn't be before the person has finished a field), whether the message says how to fix the problem, what happens to typed values when the submit fails, whether a double click sends two requests, whether the button shows progress, whether the right keyboard appears on a phone, whether browser autofill works, and whether the same rules are checked on the server. Fix what's wrong using the form and validation tools already in the project. Then test with an empty form, bad values, a failed network request and a double click.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in. Replace the parts in [brackets] with your own details first.
More in Design and UI
Fix a site that looks AI-made
Purple gradient, icon in a circle, three identical cards: visitors have seen this page before.
Give your AI a design guide to follow
Every new page comes out in a slightly different style.
Design the states the demo never shows
Screens only look right when data loads fast, lists are full and nothing fails.
Check every page on a phone
You built on a laptop, and most visitors arrive on a phone.