Loading FormAck
Skip to content

← All posts

from the checkpoint kitchen

Recipe: a working contact form for a static site

serves one website

At a glance

Prep: sign up and add your domain. Cook: paste one tag. Rest: send yourself a test.

Works on: HTML, Webflow, Framer, WordPress, Hugo, Next.js exports. Anything that can add a script tag.

Difficulty: if you can paste, you can do this.

Ingredients

  • 1 website you already have, on a domain you own
  • 1 form, any design you like: name, email, message is the classic
  • 1 FormAck account (the free Starter plan covers one website)
  • 1 site key, from the portal
  • 1 script tag
  • A pinch of patience while you send a test

You will not need: an API server, a database, captcha keys of your own, rate limits, spam rules, email templates, a retry queue, or an email account. Leave them in the cupboard.

Method

Step 1 · prep

Add your website

Sign up and add the domains your form lives on. This is the allowed list: your form will only be accepted from these. You get a site key, and the captcha is set up for you.

Step 2 · season the form

Mark the form and name the fields

Add one attribute to your form so FormAck knows which one it is. Name your fields with the built-in names where they fit: fullName, email, phone, company, message. Anything else you add is kept too, as a custom field.

<form data-formack-form="contact-us">
  <input name="fullName" required>
  <input name="email" type="email" required>
  <textarea name="message"></textarea>
  <button>Send</button>
</form>

Your form keeps its design. Nothing about how it looks changes.

Step 3 · into the oven

Paste the script tag

Add this once, below the form or in your site's footer code. Use your own site key.

<script src="https://[YOUR API]/sdk/formack.v1.js"
        data-site-key="pk_live_…" async></script>

On Webflow it goes in the footer custom code. On WordPress, your theme footer or a header-and-footer plugin.

Step 4 · garnish

Make both emails yours

In the portal, set the thank-you and the team alert once: header, logo, colours, fonts, wording, signature and footer. Any field your form sends can go into the email.

Hi {{ submission.name }}, thanks for contacting {{ company.name }}.

Step 5 · taste

Send yourself a test

Submit your own form. In the portal you'll see Ack's verdict, and the setup checklist turns green once both emails arrive.

ready to serve

Chef's notes

Why the allowed domains matter

Your site key sits in your page source, where anyone can read it. That's fine. On its own it only says which form this is, and it's only accepted from the domains you added in step 1. Every submission also needs a fresh single-use ticket and a captcha pass checked on our server.

About the captcha

Turnstile or reCAPTCHA, verified on our side with your secret and your hostname. The secret never goes to a browser.

Serving suggestion: send from your own domain

Our sender works straight away, and replies still go to your team. When you're ready, add two DNS records and the thank-you comes from your own address, with no email account needed. Or connect ZeptoMail, SES, SendGrid, Mailgun, Postmark, Brevo or any SMTP.

If it doesn't rise

  • Nothing arrives? Check the page's domain is on your allowed list. Submissions from anywhere else are turned away at the door.
  • A message is missing? Look in the review queue. Doubtful messages wait there instead of being deleted. Approve with one click and both emails go out.
  • An extra field showed up? It's kept, and Ack suggests adding it to your form settings so nothing gets lost.