Add a contact form to a Squarespace site

A Squarespace Code block can hold a plain HTML form that posts to FormKeep. It uses no JavaScript or iframe, which Squarespace limits to some plans.

What you need

Steps

  1. Create a form in FormKeep and copy its URL from the Setup tab.
  2. Edit the page, hover over the section, click "Add block" or the plus sign and choose "Code".
  3. Click the pencil icon on the block, choose HTML from the "Mode" menu and paste the form below with your URL as the action. Leave "Display Source" off, or the form shows as text.
  4. Save, then view the live page, send a test message and open the form in FormKeep to see it.

The form

<form action="https://formkeep.com/f/YOUR-TOKEN" method="POST">
  <p><label>Email<br><input name="email" type="email" required></label></p>
  <p><label>Message<br><textarea name="message" required></textarea></label></p>
  <p><button type="submit">Send</button></p>
</form>

What happens on submit

The browser posts the form and is redirected: to the redirect URL set in the form's Redirects tab in FormKeep ("Redirect to your site"), or to FormKeep's own thank-you page if none is set. A plain form post gets no JSON.

Add file uploads

Add a file field and enctype="multipart/form-data" to the form. Each file can be up to 10 MB, and whether attachments are kept depends on your plan.

Troubleshooting

Looking for something else?

Email us