Adding Custom Fields to Your Shopify Contact Form – Text, Dropdown, Radio & Checkbox
Creating a custom experience for your customers on Shopify may sometimes require a little extra personal touch than the default settings offer. Throughout this tutorial, we will be inserting custom form entries into the contact form of the Dawn Shopify theme. These will include text input fields, a dropdown selection, radio buttons, and a checkbox.
If you prefer video tutorials over text, feel free to skip this post and watch the video below. If not, please continue reading.
Basic understanding of HTML and Liquid (Shopify’s templating language).
Access to your Shopify theme’s code.
Step 1: Open Your Theme Files
First, you have to access the theme code:
Go to your Shopify admin panel.
Click on ‘Online Store’ and then on ‘Themes’.
Find your Dawn theme, then click on ‘Edit code’.
Step 2: Edit Contact Form
You will need to search the contact-form.liquid file in the ‘Sections’ directory, and on opening this file, it contains your contact form with its structure and layout details.
Step 3: Add Text and Dropdown Fields
To the form, we added three text input fields for Year, Make, and Model respectively. These are organized with a clean grid layout giving it a neat yucky look.
Underneath the surface of the Dawn theme, most of the styling is done by CSS classes, but we have added a little bit of custom CSS for some specific tweaks – some padding for the dropdown and some color for the default option.
With the steps given above, you can customize your contact form with additional fields to beef up your site functionality and its user experience. Remember to preview your changes and test your form functionality before going live with the published form on your store.
This tutorial should leave you with a better understanding of how to tailor your Shopify contact forms in such a way that they suit your type of business. Good luck!
Have you tried this customization? How did it work for your store? Let us know in the comments below!
A certified Shopify expert, brings over 10 years of experience to the forefront of e-commerce development. As a co-founder of WebFix Lab, he has significantly contributed to WordPress and WooCommerce solutions, serving over 1000+ active users with premium plugins. Recognized as an Upwork Top-Rated Developer and honored with the BASIS Outsourcing Award in 2020, Shahriar now focuses his expertise on Shopify development at KlinKode, where he continues to innovate and drive success in the digital retail space.