Send a Squarespace form to Slack and email
Add a Formpik form to Squarespace with a Code block, then route every answer to email and Slack with spam checks.
2 min read
On this page
Squarespace's own form blocks send answers to email and a few storage options. When you want more, such as answers in Slack, routing by topic, a reply to the sender or a webhook to your own system, you can put a Formpik form on the page instead. All it takes is a Code block.
1. Get the snippet
In Formpik, create a form with the fields you need, add a source and choose Squarespace. The source shows an HTML snippet with your endpoint, every field and the success and error messages already in place.
2. Add a Code block
- Edit the page in Squarespace and add a Code block where the form should go.
- Paste the snippet and save.
- Publish and send one test submission.
The snippet comes with a script line that keeps visitors on the page and shows your messages. Squarespace runs scripts in Code blocks only on some plans, so check its help page if the messages do not show. Without the script the form still works: it posts the classic way and brings visitors back to the page, or to a thank you page if you set one.
3. Style it to match
The snippet uses plain HTML, so it picks up much of your site's text style. Add a few lines of CSS in the Code block, or in your site's custom CSS, for inputs and the button. Keep the labels: they make the form usable for everyone, including screen reader users.
4. Route the answers
Every submission runs the form's flow. For a small business site, this covers most needs:
- Validate the answers.
- Route by answer on a topic field: bookings to one person, questions to another, with a default path for the rest.
- Post to Slack on each path with a short line.
- Send email with every answer, so there is a record outside Slack.
- Reply to sender with a short thank you.
Send people to a thank you page
To send visitors to a page of your own after the form, set it under after submitting in the form's settings, or add a hidden _redirect input with the address. Redirect rules can even pick a different page by answer, such as a booking page for one service and a price list for another.
Related guides
- Formpik for Squarespace, the setup guide.
- Connect a website.
- Redirect visitors after a form by what they answered.
- Add a Wix form that sends answers to email and Slack.
References
- Code blocks, Squarespace Help Center.
- Sending messages using incoming webhooks, Slack Developer Docs.
- Labeling Controls, W3C Web Accessibility Initiative.

