Guides
How to get website form submissions where they need to go, with the code to do it. Each one works on its own; 1DB is used where it saves you building something.
- Add lead capture to a site with Claude CodeSign in to 1DB once from your terminal, then ask Claude Code to connect any site’s forms: it adds the site, writes the keys, wires the form and sends a test lead.
- Capture UTM parameters and ad click IDs in form submissionsKeep the campaign that brought a visitor, even after they’ve browsed three pages before filling in your form, and store it on the lead.
- A form backend for a static siteThree ways to take form submissions on a static HTML, Astro, Hugo or Eleventy site: a script tag, a fetch from the page, or a small serverless function.
- A Next.js contact form that saves every submissionBuild a contact form in the Next.js App Router with a server action that stores each submission, shows per-field errors and survives double clicks.
- How to stop duplicate form submissionsDouble clicks, slow networks and retries all send the same form twice. Give each submission an ID when the form loads and let the server drop the repeats.
- Send form submissions to email and a webhookEmail each new lead to your team and post it as JSON to your own endpoint, with the exact payload, how to check it’s really from 1DB, and what happens when your endpoint is down.
- Send website form submissions to HubSpotKeep your own forms and still get every submission into HubSpot as a lead: connect once, turn sync on per form, map the fields HubSpot doesn’t know.