Guides

How to add a contact form to your Shopify website: Step-by-step guide

Shopify's built-in contact form emails one address. For file uploads, several recipients or a stored history, add your own form without an app. Here is how.

How to add a contact form to your Shopify website: Step-by-step guide
On this page14 sections
  1. Which Shopify contact form do you need?
  2. How to add the built-in Shopify contact form
  3. What changes when the form posts to formcarry
  4. The quick way: let an AI assistant do the formcarry side
  5. Step 1 - Create your first form
  6. Step 2 - Put the form on your Shopify store
  7. Step 3 - Testing out your form
  8. Step 4 - Setting up email notifications for your form
  9. Step 5 - Setting up auto response emails
  10. Add a file upload to your Shopify contact form
  11. Keep the shopper on your store
  12. Going further
  13. Frequently asked questions
  14. Conclusion

To add a contact form on Shopify, create a page and pick the contact template: every Shopify theme has a contact form built in, and it emails each message to your store's sender address. When you need more than an email, put your own HTML form on the page and point it at a form backend. This guide covers both, and for the second it starts with the short route: an AI assistant such as Claude, Codex or Cursor sets up the formcarry side from one prompt.

Which Shopify contact form do you need?#

Start with what Shopify gives you. According to the Shopify Help Center, the built-in form sends every submission to your store's sender email address, puts a [SPAM] prefix on the subject of messages it suspects, and its subject line cannot be changed.

OptionWhat it isChoose it when
Built-in contact formPart of every theme. One email per message to the store's sender addressAn email to one inbox is all you need
Shopify FormsShopify's own free app for inline and pop-up forms that collect leads and signupsYou want email or SMS subscribers, not a contact page
A form appA third-party app from the Shopify App StoreYou want a form designer inside the Shopify admin and accept an app subscription
Your own form and a form backendAn HTML form on the page that posts to a service such as formcarryYou want submissions stored and searchable, files attached, several recipients, your own email subject, or the data sent on to other tools, without installing an app

If the first row covers you, the next section is all you need: the built-in form is less work. The rest of the guide is the last row.

How to add the built-in Shopify contact form#

These are Shopify's own steps, from the Help Center page above:

  1. In your Shopify admin, go to Online Store, then Pages.
  2. Click "Add page" and give the page a title, such as "Contact us".
  3. In the Online store section, pick "contact" from the theme template menu. This is the page.contact template.
  4. Save.

Messages arrive at the store's sender email address, which you can change on the Notifications settings page of your admin.

What changes when the form posts to formcarry#

Sending the form somewhere other than Shopify is a trade, and you should know the cost before you make it.

  • The shopper leaves your store for a moment. After a plain form post, the visitor lands on formcarry's thank you page. You can restyle that page on any plan. Sending the visitor back to a page on your store needs a paid plan, or a form submitted with JavaScript. Both are covered in Keep the shopper on your store.
  • Shopify's captcha no longer covers the form. Shopify's developer docs say its captcha protection finds the contact form by an action that contains /contact. A form that posts to another address is outside it. formcarry filters spam on every form instead, keeps what it flags, and lets you add a captcha challenge if you want one.
  • Your theme's own success and error messages stop appearing, because Shopify no longer handles the submission.
  • Messages go through another company. Customer messages are stored by formcarry, so name it in your store's privacy policy. formcarry's side is in its privacy policy.

The quick way: let an AI assistant do the formcarry side#

If you already work with Claude, Codex or Cursor, this is the easier route. formcarry has an MCP server, which lets the assistant work in your formcarry account from the chat, and it is included in the free plan. The address is the same for every tool:

Text
https://mcp.formcarry.com/mcp

Connect over MCP has the setup for each tool. Once it is connected, one prompt replaces Step 1 and writes the form code for Step 2:

Text
Create a formcarry form called "Shopify contact form" and give me its endpoint URL.
Then write the HTML for a contact form with name, email and message fields that
posts to that URL, ready to paste into a Shopify page.

It replaces the checking in Steps 3 and 4 as well. After you send a test message from your store, ask:

Text
Show me the latest submission of that form and where it was delivered.

The assistant works in your formcarry account, not in your Shopify store, so pasting the form code into the page (Step 2) stays with you. The steps below do the same setup by hand, and they are where to look when you want to know what the assistant did.

Step 1 - Create your first form#

Sign up to formcarry here. Once you've logged in to your dashboard, click the "Create Form" button to create a new form. Then click "Setup" and copy your form's unique endpoint URL. It looks like https://formcarry.com/s/XXXXXXX, and it is the only thing your store needs from formcarry.

Step 2 - Put the form on your Shopify store#

There are two ways to do it. Option A adds a new form and does not touch your theme's code. Option B rewires the form your theme already has.

Option A - Add your own form in a Custom Liquid section#

This is the route I recommend, because it survives theme updates. Shopify warns that when a code change is incompatible with a theme update, "all your code changes are removed in the updated copy". A section added in the theme editor is content, not a code change.

First, build the form. Our free contact form code generator gives you complete form code with your endpoint already in it.

formcarry contact form generator with a form preview and settings for style, form and color

After you customize the form, open the code tab and copy it.

Code tab of the formcarry contact form generator with the Copy Code button marked

Then add it to your contact page:

  1. In your Shopify admin, go to Online Store and click "Edit theme" on your current theme.
  2. In the page selector at the top, open the page that should hold the form.
  3. Click "Add section", choose "Custom Liquid", and paste the form code into it.
  4. Save.

Not every theme has a Custom Liquid section. Shopify says to check your theme's documentation for a custom HTML or Liquid option. If yours has none, you can paste the form into the theme file itself, as in the screenshot below. That is a code change, so duplicate the theme first and expect to redo it after a theme update.

Shopify theme code editor with the generated form code pasted into contact-form.liquid

Either way, the page now shows your form.

Contact page of a Shopify store showing the new form with name, email and message fields

Option B - Point your theme's own form at formcarry#

In your Shopify admin, go to Online Store, open the "..." menu next to your theme and choose "Edit code". Search the files for "form" and open contact-form.liquid (the name may vary in your theme). In that file, find the line that starts the contact form by searching for form 'contact'.

Now override the address the form posts to. You need the endpoint URL from Step 1.

Setting up the form action:

In Shopify's Dawn theme the line reads:

Handlebars
{%- form 'contact', id: 'ContactForm', class: contact_form_class -%}

Add an action with your endpoint URL:

Handlebars
{%- form 'contact', action: 'PASTE THE URL THAT YOU GOT IN STEP 1', id: 'ContactForm', class: contact_form_class -%}

Your theme's line will differ after the form name. Keep what is there and add only the action. Replace the placeholder with your own endpoint, or the form won't work.

Setting up field names:

Each field needs a plain name, otherwise its value arrives under a name you won't recognize. Find every input, select and textarea whose name looks like this:

Handlebars
<input name="contact[{{ 'templates.contact.form.name' | t }}]" ...

And give it a name of your own. If the field collects a legal name, call it legalName:

Handlebars
<input name="legalName" ...

Name the field that collects the customer's email address email. Step 5 depends on it. Shopify's form tag also adds two hidden fields of its own, form_type and utf8, so expect to see them in each submission.

Step 3 - Testing out your form#

Open the contact page on your store and send yourself a message. Write it the way a customer would, with a real name and your own email address: a test full of "asdf" and "test@test.com" is exactly what a spam filter is built to flag. The message should appear in the formcarry dashboard:

formcarry dashboard listing the test submission with its name, email and message

The form works when the submission is in the dashboard with every field you expected. A missing field means that input has no name. If nothing arrives at all, the form is still posting to Shopify: check that the action is your endpoint and, if your store has more than one contact form file, that you edited the one the page uses.

Step 4 - Setting up email notifications for your form#

Notification emails go to your formcarry account's address until you change the recipients, so you may already have received one for your test. To choose who gets them, open the form's Settings page, scroll to the Self email notification, turn it on and edit the notification list, as below. The free plan allows one recipient; paid plans allow more. The email notifications docs have the details.

Submit the form again and the notification arrives:

Email notification for a new submission, opened in an inbox

If no email came, look for the message among the flagged submissions in the dashboard. By default formcarry does not send a notification for a submission it marks as spam. You can change that in the form's settings:

Form settings in formcarry with the Spam notifications toggle highlighted

When an email is the part that's missing, open the submission itself. Every submission carries its own delivery log, so you can see whether the notification was sent before you start changing code.

Step 5 - Setting up auto response emails#

Auto-responses are a paid feature, from the Starter plan at $6 a month. On the free plan you can stop at Step 4: your form already works.

An auto-response tells the sender you received their message and will reply. It matters most when nobody is at the desk: one in five contact form messages arrives on a weekend. Source: formcarry's analysis of 1,296 active contact forms, January 2024 to October 2026. Without an auto-response, those senders hear nothing until Monday. It needs the email field to be named "email". Our generated forms already do this; with your own HTML, check the name before you turn the feature on.

In your form's Settings, scroll to Respondent Email Notification and enable the toggle. Then click the pen icon to the right of the toggle and write your template:

Respondent email template editor in formcarry, with an arrow from the name tag in the message to the name in the preview

The template accepts tags that fill in the sender's name and other fields from the form, so each reply can address the person who wrote. Save the template, submit the form with your own address in the email field, and the auto-response should arrive in that inbox.

Add a file upload to your Shopify contact form#

File uploads need a paid formcarry plan, from $6 a month. Each file can be up to 10 MB. On the free plan the rest of the submission is stored without the file.

Two changes to the form's code turn it on: enctype="multipart/form-data" on the form tag, and a file input with a name.

HTML
<form action="https://formcarry.com/s/XXXXXXX" method="POST" enctype="multipart/form-data">
  <input type="email" name="email" placeholder="Email">
  <input type="file" name="attachment">
  <textarea name="message" placeholder="Message"></textarea>
  <button type="submit">Send</button>
</form>

The file arrives attached to the submission in the dashboard. Use this for returns with a photo, custom order artwork or wholesale applications with a document. The file uploads docs cover several files at once, and our file upload form guide builds one step by step.

Keep the shopper on your store#

By default the visitor ends on formcarry's thank you page. There are two ways to bring them back.

  • Redirect after submitting. On a paid plan, set a thank you URL in the form's settings, or add a hidden _next input to the form with the address of a page on your store. Make a simple "Thanks, we got your message" page in Shopify and point at it. The thank you pages docs cover both.
  • Submit with JavaScript. A form sent with a script never leaves the page. When the request carries an Accept: application/json header, formcarry answers with JSON and no redirect, and your script shows the confirmation. The JavaScript example in the docs is a working starting point.

Going further#

formcarry connects to Zapier, and the Zapier integration is available on the free plan. Some things stores do with it:

  • Send each submission to Google Sheets
  • Add new contacts to Mailchimp
  • Create a ticket in your help desk for each message
  • Get a text message for each new submission through Twilio

Frequently asked questions#

Do I need a Shopify app to add a custom contact form?#

No. Nothing in this guide installs an app. Option A adds a section in the theme editor, and formcarry receives the submissions at the endpoint in the form's code.

Where do Shopify contact form submissions go?#

To email. The built-in form sends each one to your store's sender email address and nowhere else that Shopify's Help Center page describes. Once your form posts to formcarry, every submission is also stored in the formcarry dashboard, where you can search it later, and is emailed to the recipients you set in Step 4.

How do I send a Shopify contact form to more than one email address?#

The built-in form sends to one address, the store's sender email. With your own form on formcarry, add each person to the form's notification list in Step 4. The free plan allows one recipient and paid plans allow more. You can also set the subject line of that email, which the built-in form does not let you change.

How do I add custom fields to a Shopify contact form?#

The built-in form accepts them. Shopify's developer docs say its optional fields can be any HTML input type, each named contact[something] with a name that is unique within the form, and that those names appear in the notification email. That is an edit to the theme's form code. With your own form on formcarry, any field with a name is stored and emailed.

How many messages does the free plan cover?#

Fifty submissions a month, on one form. Steps 1 to 4 of this guide work on it.

Will this work with any Shopify theme?#

Option A needs a theme with a Custom Liquid section, or a willingness to paste the form into a theme file. Option B depends on your theme's form tag accepting an action, which is not documented, so test it on a duplicate first. The formcarry side is the same for every theme.

Conclusion#

Use Shopify's built-in contact form until it stops being enough. When you need the messages stored, files attached or more people notified, add your own form in a Custom Liquid section, point it at your formcarry endpoint, send yourself a real test and decide where the shopper should land afterwards. See formcarry plans and limits once you need auto-responses or file uploads.

Nusu AlabugaFounder, formcarry

Nusu Alabuga founded formcarry in 2017 and still runs it: the ingest pipeline, the spam filtering, the email delivery and the incident tracking that watches customers' forms. A product engineer by trade, with years of work in payments, security, invoicing and banking infrastructure.

WebsiteXLinkedInGitHub

Keep reading

LET'S GET STARTED!

Hassle Free Forms

Create your form endpoint and start collecting submissions

for your HTML forms, it only takes 2 minutes to set up your form

formcarry dashboard.
Your email address|