# Add a contact form to Squarespace with a Code Block

> Paste one HTML form into a Squarespace Code Block. Each message is emailed to you.

Last updated 2026-11-19. Web version: https://wrenform.com/docs/guides/contact-form-squarespace

```html
<form action="https://wrenform.com/f/YOUR_FORM_ID" method="POST">
  <label>Name <input type="text" name="name" required></label>
  <label>Email <input type="email" name="email" required></label>
  <label>Message <textarea name="message" required></textarea></label>
  <input type="text" name="_honey" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>
```

[Create the form, copy the endpoint](/sign-in), and replace `YOUR_FORM_ID` in the snippet. Just trying it out? A [form without an account](/docs/quick-forms) gives you an endpoint from one request, free for 250 submissions a month; you confirm it by email.

Squarespace's built-in Form Block has no setting for a custom action URL, so it can't send to Wrenform. A Code Block can hold a plain HTML form that does. The snippet has no script, only HTML.

## Steps

1. [Create a form](/sign-in) in Wrenform and copy its endpoint from the Setup page.
2. Edit the page in Squarespace, click an insert point and add a **Code** block.
3. Set the block's mode to **HTML** and turn **Display Source** off, so the form renders instead of showing as text.
4. Paste the snippet, with your form ID in place of `YOUR_FORM_ID`. Save, then publish the page.
5. In Wrenform, add your site under **Allowed origins** in the form's settings, with `https://`: your custom domain, for example `https://example.com`, and your built-in `https://YOURSITE.squarespace.com` address if visitors can reach it.

The fields are named `name`, `email` and `message`. The `email` field becomes the reply-to of your notification, so you can answer from your inbox.

If your plan doesn't offer the Code block, check your plan's features in Squarespace before you upgrade for this.

## The page after sending

By default, visitors land on our thank-you page, with a **Back** link to your site. To send them to your own page, create a "Thanks" page in Squarespace and put its full address in **Redirect to** in the form's settings, for example `https://example.com/thanks`. See [redirects](/docs/redirects).

## Spam and email

- The hidden `_honey` field catches most bots. Keep it in the form, hidden, with `autocomplete="off"`. When it's filled, the submission goes to Spam and the sender still sees success.
- No captcha is needed. See [spam](/docs/spam) for the other checks and the sensitivity setting.
- Want each message in another tool too? Add a [webhook](/docs/webhooks) (Pro and Agency).
- Submissions are stored in the EU. Free keeps them for 30 days, paid plans for 365 days.

## Test it

Test on the published page, not in the editor: open it in a private window and send the form. You should land on the thank-you page, see the submission in your dashboard, and get an email.

## Common problems

- **The code shows as text on the page.** **Display Source** is on, or the block isn't in HTML mode. Turn it off and set HTML.
- **Nothing happens in the editor.** Forms in the editor preview may not submit. Use the published page.
- **`403 origin_not_allowed`.** The address you test from isn't in **Allowed origins**: often the `squarespace.com` address while only the custom domain is listed, or `www.` against no `www.`. Add the exact one. See [errors](/docs/errors#origin_not_allowed).
- **Anything else.** See [troubleshooting](/docs/troubleshooting).

## Next steps

- [HTML guide](/docs/frameworks/html): the full snippet, with the optional timing check.
- [Fields](/docs/fields): more fields, checkboxes and the email subject.
- [Pricing](/pricing): free for 250 submissions a month, paid plans from €5.
