TidyForms
See the demo
Why TidyForms

How to add fields to the Shopify contact form

Add fields to the Shopify contact form: text, dropdown, radio and checkbox inputs in Liquid, the naming rules that make them work, and a no-code route.

By the TidyForms team 8 min read
Soft 3D clay illustration in lavender and peach: a rounded form card with new pill-shaped fields, a dropdown and a checkbox being stacked onto it like building blocks

To add fields to the Shopify contact form, edit the form’s Liquid code and add a new input inside the {% form 'contact' %} tag, named contact[Your field name]. Shopify sends every field named that way in the contact email, with the name as its title. The theme editor can’t add fields in Dawn or Horizon, so it’s either a small code edit or a form app.

Here’s what each common field looks like:

Field you wantHTML elementHow to name itWatch out for
Short text (order number)<input type="text">contact[Order number]Unique name per field
Long text<textarea>contact[Details]Keep the theme’s own message box
Dropdown<select> with <option>scontact[Topic]Add an empty first option if it’s required
Radio buttons (one choice)<input type="radio">Same name for every optionDifferent value for each
Checkboxes (several choices)<input type="checkbox">A unique name for each boxShared names only send the last one
Hidden value<input type="hidden">contact[Form]Visitors can still see it in the page source

Why the theme editor can’t do it

Go to Online Store, click Edit theme, and select the contact form on your contact page, and you’ll see settings for its look, not its fields:

  • Dawn: the Contact form section has a heading, heading size, colour scheme and padding.
  • Horizon: the Contact form block has width, background colour, input style (colours, border width, corner radius) and padding.

In both, the fields are written into the theme’s code: name, email, phone and message. So adding one means changing that code, or adding your own form in a Custom Liquid section, or using an app.

Before you start: make a backup

  1. In your Shopify admin, go to Online Store.
  2. On your current theme, open the … menu and choose Duplicate.
  3. Make your changes on the copy, preview it, then publish it when it works.

To open the code, go to Online Store, click the … menu on your theme and choose Edit code. Shopify’s help recommends duplicating the theme first so you can start again from the copy if something goes wrong.

The naming rules

Shopify.dev sets out a few rules for the contact form. Get these right and everything else is ordinary HTML.

  1. The email field is the only required input. It must be type="email" and named contact[email].
  2. Every other field is named contact[something]. The part in brackets describes the information, and it becomes the field’s title in your email.
  3. Each name must be unique. Two fields with the same name overwrite each other.
  4. Add required="required" to make a field required.

Use plain, readable names. contact[Order number] reads well in your inbox; contact[field_7] doesn’t.

Find the form in your theme

In the code editor, the contact form lives in different files depending on the theme:

  • Dawn: sections/contact-form.liquid
  • Horizon: blocks/contact-form.liquid
  • Other themes: use the file search for form 'contact'.

Everything you add goes between {% form 'contact' ... %} and {% endform %}, usually just before the message box. Copy the wrapper markup the theme uses around its existing fields, such as a <div class="field">, so the new field picks up the same styling.

Add a text field

An order number is the most useful extra field for most stores:

<div class="field">
  <label for="ContactForm-order">Order number (if it's about an order)</label>
  <input type="text" id="ContactForm-order" name="contact[Order number]">
</div>

The id and the label’s for must match, so tapping the label focuses the box. Give every new field its own id.

Add a dropdown

A topic dropdown helps you sort messages at a glance:

<div class="field">
  <label for="ContactForm-topic">What can we help with?</label>
  <select id="ContactForm-topic" name="contact[Topic]" required="required">
    <option value="">Choose one</option>
    <option>Order question</option>
    <option>Product question</option>
    <option>Wholesale</option>
    <option>Something else</option>
  </select>
</div>

The empty first option matters. Without it, the first real choice is selected by default, so a required dropdown can never be left unanswered, and you’d get “Order question” from people who didn’t choose it.

Add radio buttons

Radio buttons are for one choice from a short list. Shopify.dev says every option shares the same name and has a different value:

<fieldset>
  <legend>How should we reply?</legend>
  <input type="radio" id="ContactForm-reply-email" name="contact[Reply by]" value="Email" checked>
  <label for="ContactForm-reply-email">Email</label>
  <input type="radio" id="ContactForm-reply-phone" name="contact[Reply by]" value="Phone">
  <label for="ContactForm-reply-phone">Phone</label>
</fieldset>

The <fieldset> and <legend> let screen readers announce the question with each option.

Add checkboxes

This is where most people get stuck. Shopify.dev says each checkbox in a group needs a unique name. If they share one name, only the last ticked value is sent.

<fieldset>
  <legend>Which products are you interested in?</legend>
  <input type="checkbox" id="ContactForm-int-coffee" name="contact[Interested in coffee]" value="Yes">
  <label for="ContactForm-int-coffee">Coffee</label>
  <input type="checkbox" id="ContactForm-int-tea" name="contact[Interested in tea]" value="Yes">
  <label for="ContactForm-int-tea">Tea</label>
</fieldset>

Unticked boxes aren’t sent at all, which is normal HTML behaviour. In your email you’ll only see the ones the customer ticked.

Add a hidden field

A hidden field adds a fixed value to every message. It’s handy when the same form appears on several pages, because Shopify’s help says the subject line of contact emails can’t be changed:

<input type="hidden" name="contact[Form]" value="Wholesale page">

You can then filter on “Wholesale page” in your mailbox. Our guide to the Shopify contact form email settings covers sorting and forwarding.

A route without editing theme files

If you’d rather not touch the theme’s files, many themes, including Dawn and Horizon, have a Custom Liquid section or block in the theme editor. You can add it to your contact template and paste a complete {% form 'contact' %} form into it, with your own fields. Then remove the theme’s original contact form section so there’s only one form on the page.

Two things to keep in mind:

  • You write the whole form, including the success message and errors. Start from the pattern in the Shopify.dev guide, with {{ form.errors | default_errors }} inside the form.
  • Styling is up to you. Reuse the theme’s class names, which you can find by right-clicking a field on your store and choosing Inspect.

Test it, and keep your edits safe

  1. Preview the duplicate theme and send a test message with every new field filled in.
  2. Check the email arrives at your sender email (in Settings > Notifications) and that each field shows with the title you expect.
  3. Send another test with the optional fields empty, and with a required field skipped, to see the browser’s error.
  4. Publish the duplicate theme when you’re happy.

Theme updates are the long-term risk. Shopify’s help says your code edits are included in an update only if they don’t conflict with it, and the new theme’s card tells you whether they were. It also says to save a copy of any customised code before you update. Keep your field code in a note so you can paste it back.

What Liquid fields can’t do

Hand-added fields work, but they stay simple:

  • No conditional logic. You can’t show the order number field only when the topic is “Order question” without writing your own JavaScript.
  • Browser-only checks. required is checked by the browser, which shows its own message, in its own style.
  • Email is the only record. Answers arrive in one email and aren’t saved anywhere you can search or export.
  • File uploads aren’t covered. Shopify’s contact form docs don’t describe them.

The Shopify Forms app

Shopify’s free Forms app adds fields without code. Its help centre lists single-line and multi-line text, dropdowns, radio buttons, multiple choice checkboxes, dates, numbers and file uploads up to 20 MB, with up to 31 fields per form. Fields can be kept on one form or saved as customer or company metafields. Shopify’s help also says it doesn’t support multi-step forms or conditional logic (checked November 2026). Our Shopify Forms app review has more.

How TidyForms handles custom fields

TidyForms is a Shopify form builder. It’s in beta and not on the Shopify App Store yet, so the Liquid method above is what you can use today.

In TidyForms you add fields from a drawer instead of code:

  • Click Add element and search for what you need, like “dropdown”, “checkbox” or “upload”. Contact fields, text, selects, numbers, ratings and colour fields are on every plan, and so are file uploads (5 MB per file on Free). The add and edit fields guide walks through the settings.
  • Each field has its own settings: label, help text, placeholder, default value, required with your own error message, and width.
  • Show or hide fields based on answers. Free includes up to 3 logic rules per form, so the order number can appear only for order questions. Pro has unlimited rules. See conditional logic.
  • Every answer is saved first, then emailed, so the inbox keeps a record you can search.

If you’d like a starting point, the Contact us template already has a topic dropdown and an order number field that only shows for order issues.

What it doesn’t have yet: an App Store track record, reviews, or the Built for Shopify badge. If you only need one or two extra fields, the Liquid edit above is free and quick.

Sources

Questions

Can I add fields to the Shopify contact form without code?

Not in Dawn or Horizon. Their contact form settings cover the look of the form, not its fields. Without code, you'd use a form app such as Shopify Forms or another form builder.

How do I name a custom field in the Shopify contact form?

Name it contact[something], for example contact[Order number]. Each name must be unique in the form, and it appears as the field's title in the email you receive. The email field must be named contact[email].

Why does my checkbox group only send one answer?

Shopify.dev says each checkbox in a group needs its own unique name. If they share one name, the form only returns the last value that was ticked.

Will a theme update remove my new fields?

It can. Shopify's help says code edits carry over in a theme update only if they don't conflict with it, and tells you whether they were included. Keep a copy of your changes before updating.

Your next form is five minutes away

Join the beta: 3 months of Pro free, and a person on our team to help you set up.

Click through the demo
Free during the beta

Join the TidyForms beta

We’re opening TidyForms to a small group of Shopify stores first. Beta stores get 3 months of Pro free and a direct line to the team.

We only use your email for the beta. No spam, and you can leave any time.