Build a form
“Build a [contact/signup/feedback] form with fields for [name, email, message]. Include validation and show success/error messages after submission.”
Free AI prompt · The Code Book
A ready-to-use prompt from the chapter Forms & Validation. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“Add form validation to my existing form. Required fields should show red borders and error text. Email must be valid format. Password must be at least 8 characters.”
“Build a [contact/signup/feedback] form with fields for [name, email, message]. Include validation and show success/error messages after submission.”
“Turn my form into a multi-step wizard with [2/3/4] steps. Add a progress bar at the top, Back and Next buttons, and validate each step before moving forward.”
“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”
“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”
“Make my website fully responsive so it looks great on phones, tablets, and desktops. Use Tailwind CSS breakpoints and make sure the navigation works on mobile with a hamburger menu.”
“Set up a backend for my app using Supabase. I need tables for [users, posts, comments]. Include row-level security policies so users can only edit their own data.”