Form in Bolt

Bolt often offers its own database. A contact form does not need one.

  1. Get a Formgong key.
  2. Paste the prompt into Bolt.
  3. Check that the form posts to /submit, not a local table.
  4. The submission should appear in the inbox.

Prompt

Build a contact form with no custom backend. Submissions go to Formgong.

- action/fetch: https://formgong.com/submit
- access_key: fk_your_access_key
- Fields: name, email, message
- Hidden honeypot field botcheck
- No files, database, or server functions
- JSON responses look like {"success": true}; a classic form POST may redirect
- Interface copy in English

fetch

async function onSubmit(event) {
  event.preventDefault();
  const fields = Object.fromEntries(new FormData(event.currentTarget));
  const response = await fetch("https://formgong.com/submit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Accept: "application/json",
    },
    body: JSON.stringify({ ...fields, access_key: "fk_your_access_key" }),
  });
  const result = await response.json();
  if (!result.success) throw new Error(result.message || "Formgong error");
}

Get a key