Contact form for Shopify
Add a contact or product question form to your Shopify theme with a Custom Liquid section. Get each message in Telegram, Slack, Google Sheets or your inbox.
Why a form backend for Shopify
Shopify's built-in contact form is fine for a basic message to the store owner's inbox. Once you want product questions in a team Slack channel, wholesale enquiries in a spreadsheet, or extra fields like order number and budget, you need either an app or a form backend.
Lazyform is the lightweight option. Paste a form into your theme, and we check it for spam, store it and send it wherever your team works.
A working contact form
In the theme editor, add a Custom Liquid section to your contact page or product template and paste this. Replace YOUR_ACCESS_KEY with your key from /login. Create a page with the handle thank-you for visitors to land on.
<form action="https://lazyform-api.xvelopers.com/submit" method="POST" class="page-width">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="hidden" name="redirect" value="{{ shop.url }}/pages/thank-you">
{% if product %}
<input type="hidden" name="subject" value="Question about {{ product.title | escape }}">
<input type="hidden" name="product" value="{{ product.title | escape }}">
{% else %}
<input type="hidden" name="subject" value="New message from {{ shop.name | escape }}">
{% endif %}
<label for="lf-name">Name</label>
<input id="lf-name" name="name" required>
<label for="lf-email">Email</label>
<input id="lf-email" name="email" type="email" value="{{ customer.email }}" required>
<label for="lf-order">Order number (optional)</label>
<input id="lf-order" name="order_number">
<label for="lf-message">Message</label>
<textarea id="lf-message" name="message" rows="5" required></textarea>
<input type="checkbox" name="botcheck" class="hidden" style="display:none">
<button type="submit" class="button">Send</button>
</form>If the customer is logged in, their email is filled in for them. On a product page, the product name goes into the subject, so you can answer without asking which item they mean.
Get submissions where you want them
Messages arrive by email. Add Telegram, Slack, Discord or WhatsApp alerts for quick replies, or log enquiries in Google Sheets, Notion or Airtable. See all integrations.
Full guide
The Shopify guide covers older themes, wholesale and quote forms, file uploads and captcha.
Questions
Shopify already has a contact form. Why use Lazyform?
Shopify's form emails the store owner. Lazyform lets you add any fields, send messages to Telegram, Slack or Google Sheets, filter spam, and keep every message in a searchable inbox.
Do I need to edit theme code?
No. Online Store 2.0 themes have a Custom Liquid section you add in the theme editor. Paste the form there and save.
Can the form include the product the customer is looking at?
Yes. Placed on a product template, the form can fill a hidden field with product.title, so you know which product each question is about.
Does it need an app from the Shopify App Store?
No. It's plain Liquid and HTML, so there's no app to install and nothing that slows your storefront.