Connect your Bolt.new contact form without building a server.
Copy this prompt into Bolt.new
Replace YOUR_FORM_ID with the sandbox link from your FormRoost dashboard. Your design stays untouched.
- Bolt often leaves contact forms as static UI or tries to spin up Nodemailer, which breaks when you deploy to Netlify or static hosting.
- Putting an email-provider API key in Bolt client code exposes your secret key to visitors.
- Testing repeated form changes in Bolt mixes fake test entries with real customer inquiries.
Typical allowed origins for Bolt.new
- https://your-site.netlify.app
- https://stackblitz.com
- https://yourdomain.com
Connect my Bolt.new form to FormRoost:
1. Keep my existing form design, layout, and fields exactly as they are.
2. Do not add Supabase, a database, Edge Functions, API routes, or an email service—send directly from the browser using fetch POST to:
https://formroost.com/s/v1/sandbox/YOUR_FORM_ID
with Content-Type: application/json and credentials: 'omit'.
3. Disable the submit button while sending so visitors never accidentally submit twice.
4. Add a visually hidden _gotcha honeypot input so spam bots get caught automatically.
5. Show a clear thank-you message on 201 Created and friendly inline errors on 422 or failure.Four steps from Bolt.new to live leads
Nothing goes live until you click Publish in FormRoost.
- 1
Create your free FormRoost form
Create a free FormRoost account (no card needed), add a project for your site, and create a form to get your sandbox endpoint.
- 2
Allow your preview and live site URLs
Open Acceptance rules → Allowed browser origins in FormRoost and add the URL where your Bolt site runs (such as your Netlify deploy URL or custom domain, plus http://localhost:5173 if testing locally).
- 3
Paste the prompt into Bolt.new
Copy the prompt above with your sandbox URL and drop it into Bolt. Bolt keeps your layout intact and wires the submit button directly to FormRoost.
- 4
Test in sandbox, then publish to production
Send a test submission from your Bolt preview and check your FormRoost sandbox inbox. When ready, click Publish to production in FormRoost and change sandbox to production in the URL.
Helpful tips & what to know upfront
Bolt.new tips
- FormRoost uses a public form ID (fpub_...) paired with Allowed browser origins—no secret API keys ever go inside your Bolt frontend.
- If Bolt opens your preview on a StackBlitz or localhost origin, add that exact origin (including port) to Allowed browser origins while testing.
- Add a custom thank-you state directly in Bolt, or configure a Success redirect URL inside FormRoost.
Good to know upfront
- Free plan includes 50 real leads/month, unlimited sandbox testing, spam shield, and email notifications.
- Spam caught by the _gotcha honeypot or rate limiter never counts against your monthly limit.
- Structured text and JSON fields only—file attachments are not supported yet.
Other AI website builder guides
View all AI guides →Ready to connect your Bolt.new form?
Start free with 50 real leads a month and unlimited sandbox testing. No payment card required.