#1 TikTok Ads Spy Tool

A Better Way to Make TikTok Ads Dropshipping & TikTok For Business

  • Find TikTok winning products & TikTok dropshipping ads.
  • Analyze TikTok advertisers
  • Get the Latest TikTok Shop Data.
Try It Free

shopify liquid contact form dropdown

Published on: July 7 2023 by pipiads

Welcome to Websensepro's Shopify tutorial on adding custom fields to the contact form. In this tutorial, we will show you how to add input fields, drop-down menus, checkbox fields, and radio button fields to the Shopify contact form.

## Introduction

Shopify does not provide an option to add custom fields through its user interface, so you will need to do it via code. All of the necessary code will be shared in the YouTube video description.

## Steps

1. Access the backend by navigating to /admin.

2. Click on Online Store from the left-hand side bar.

3. Click on Actions and select Edit Code.

4. Duplicate the theme in case of any mistakes.

5. Search for the contact form file, contact form.liquid.

6. To add an input field, add the code on line 74 of the file.

7. To add a drop-down menu, paste the provided code below the input field code.

8. To add a checkbox field, paste the provided code below the drop-down menu code.

9. To add a radio button field, paste the provided code below the checkbox field code.

10. Save the changes.

11. Test the submission by filling out the form and checking if the values are being passed through to the email.

## Conclusion

Adding custom fields to the Shopify contact form requires adding code to the contact form.liquid file. By following these steps, you can easily add input fields, drop-down menus, checkbox fields, and radio button fields to the Shopify contact form. If you have any questions or comments, leave them in the video comments. Keep learning and improving your Shopify web development skills!

Shopify Theme Build: Simple Product Form - Episode 7

- Sam Webb presents part 7 of his Shopify theme build series, focusing on building a simple product form.

Building the Product Form:

- Layout already set up with product image on the left and title/description on the right.

- Using product object to grab featured image attribute, featured image alt attribute, title, and description.

- Adding size guide for small, medium, and large options.

- Need to use new liquid tag, form tag, to build out Shopify forms.

- Form tag will build different types of forms on different pages.

- Looking specifically for product form, which will generate HTML with form element, method of post, and action of slash card slash ad.

- Need to add variant input with name ID, quantity input with name quantity, and can add line item properties.

- Add submit button to submit form.

Code:

- Create div to contain size options and loop over variants to create options with variant ID as value and variant title as display text.

- Add button tag with type of submit to submit form.

- Simple method for adding products to cart, best for products with only one variant type.

- Will explore more in-depth custom product selection in future videos.

- Interested in feedback for future product page specific topics.

Editing Shopify Contact Forms Without an App - Part 1

In Shopify, the default contact form is basic, with fields for name, email, phone number, and a message. However, what if you want to ask your customer a few more questions? Most people use apps for this, but it's actually easy enough to just copy and paste some of the form fields and create your own fields. In this article, we'll show you how to do just that and the advantages of doing so instead of using an app.

- In Shopify, the default contact form is pretty basic with only a few fields.

- However, it's easy to add custom fields without using an app.

- In this article, we'll show you how to do that and the benefits of doing so.

Advantages of creating custom fields instead of using an app:

- You don't need to pay for an app.

- It will look nicer and be part of your theme design.

- It won't slow down your site like apps can.

- Avoid using apps for every little thing in Shopify.

Creating a contact page:

- Add a page and select the contact template.

- There's only one contact template, so any changes you make will remain.

- Backup the contact form template before editing code.

Removing a field:

- Comment out the field's code to hide it.

- To bring it back, delete the comment tags.

Changing field wording:

- Edit the language file to change field wording.

- Search for the field in the templates section of the language file.

- Change the text and save.

- It's easy to add custom fields to the default Shopify contact form.

- By doing so, you avoid paying for an app, maintain the look of your theme, and avoid slowing down your site.

- You can also change the wording of the fields by editing the language file.

- Backup the contact form template before editing code.

Shopify Custom Contact Form Tutorial | How To Create Custom Fields In Your Contact Forms

How to Create a Custom Contact Form for Your Shopify Store

In this video tutorial, we will show you how to create a custom contact form for your Shopify store. We will guide you through the process of adding additional fields to the contact form, such as radio buttons, drop-down menus, and text areas.

Steps:

1. Create a contact page

2. Edit the code for the contact form

3. Create a separate page for customization

4. Add new fields to the contact form

5. Customize the new fields

6. Add radio buttons, drop-down menus, and text areas

7. Test the form

By following these steps, you can easily create a custom contact form for your Shopify store and add additional fields to gather more information from your customers. With a well-designed contact form, you can provide excellent customer service and improve your online store's performance.

Adding Fields to Shopify Contact Forms - Part 2 of Editing Form Code, No App

Okay, welcome to part two of editing contact forms in Shopify. In this part, I'm going to be showing you how to add completely new fields like a website field, a dropdown field, a new text area, or a checkbox. If you haven't watched part one, you'll find that on my channel. In that video, I just showed you a few basics like how to change the labels, placeholders, text for the button, and the text for the thank you message. I also showed you how to remove a field like the phone field that used to be there. It's quite important that I showed you how to back up the code that we will be editing because you want to be able to undo your changes in case you mess anything up.

Backing up the code is easy, and I recommend at least just doing that before editing anything. While editing this video, I just realized that it's going to be quite long because I go really in-depth in teaching you the skills behind editing contact forms. I teach you HTML and CSS and the different kinds of form fields. So, if you approach it from this perspective of an educational video, then I'm sure you will get a lot out of it. But if you're just looking for a quick answer to make a small edit to your theme, then I recommend just skipping to the chapter that relates to what you want to do. There will be different chapters for the text area, the dropdown, the checkbox, and so on.

The theme I'll be using for this tutorial is called Craft. It's the same code as the default Dawn theme. So, if you're using Dawn, you'll be able to follow along very easily. Also, if you're using Color Block or actually any of the free Shopify 2.0 themes, then you will be able to follow along because they actually all have the same code. They're just different styling presets but pretty much the same theme. If you have a different theme, that's also fine because I'll be teaching you the actual concepts and skills that you need to edit contact forms on your own. I'll be explaining some of the basics of HTML and CSS, so you won't be lost. And I'm sure that you'll be able to take these skills and use them on any other theme.

The first thing that we want to do is go to Online Store Themes and then open up the code for the theme that you're editing. So, in my case, it's this theme Craft, and I just want to click Edit Code. And if it's an unpublished theme, then you also want to preview this theme in a new tab. Now, when you're in the code editor, you want to open up a file called contact-form.liquid. This is on Craft, this is on Dawn, and on all the free Shopify 2.0 themes. We're only going to be working on this one file, so it's nice and easy.

Now, let's have a look at the code of the contact form. If you're not familiar with the Chrome code inspector, just right-click and click Inspect anywhere on the page. And this should come up. This is the Chrome inspector or otherwise known as Developer Tools or the Console. Here we can see all the code of a web page, and we can use this little arrow icon to hover over things and see how they're actually built, right? We can see all the elements, and they're highlighted on the panel on the right as well.

When we hover over this name field, we can see that this input field is selected. And when we hover over this email field, we know what that looks like. This is an input element. Both of these are in a div with the class of field. So, we want to look for these divs with the class of field. These are what we're looking for in our actual template file.

Now, let's try to create a new one-line text input. I'm going to copy and paste this name field because it's the same type of field. The field we want to create is also one line of text. We don't want to manually type all this out because we're definitely going to make some kind of typo, and it's going to break something. So, let's just copy and paste it and make a few changes.

Inside this div class of field, the first thing we see is also class field input, and that's fine. Classes are usually used for styling for the way it's going to look. We don't really want to change the class because we want it to look the same as the rest of our fields.

The autocomplete we do want to change or remove it completely. It tells Google what to suggest here. We want to change the ID to contact-form-website since we're asking people for their website. And then we have the name equals contact, and then we have these square braces. These are just attributes that we don't need to worry about right now.

Overall, editing contact forms in Shopify is easy once you understand the basics of HTML and CSS. By following this tutorial, you'll be able to make small and big changes to your contact form quickly and easily.

Add Custom Textbox or Dropdown to Dawn Product Page - No APP needed

In this tutorial, we will be creating a personalized text box or drop-down for your product page. We want to make sure that the customer can add a custom engraving or message to their product and that it looks nice when they add it to their cart.

To get started, we will go to the Shopify UI Elements Generator website, which provides simple code for adding various elements to your page. We will use the Text Short option, which is a one-line text box, and change the name to Engrave. We don't want it to be required, but we do want it to show up at checkout so the customer knows what they added to their product.

Next, we will go to our Shopify store and edit the code for the Main Product section. We will find the Add to Cart button and paste the code we copied from the UI Elements Generator. We can then customize the appearance by adding a line break and adjusting the width and line height.

We can also add a drop-down menu for selecting colors by using the same process and adding the necessary code to our Shopify store. We can customize the appearance of the drop-down by adjusting the font size, width, and padding.

Once we have added these custom elements to our product page, we can preview it to make sure everything looks and works correctly. We should be able to add a custom engraving or select a color from the drop-down, and it should show up in our cart when we view it.

Overall, adding custom text boxes or drop-down menus to your product page can enhance the customer experience and make your products stand out. If you have any questions or need help customizing your Shopify UI Elements, don't hesitate to reach out.

Shopify how to edit the contact us page - how to create custom contact forms

Hey, this is Young from Let's Go Chopperfire and today I will be showing you how to set up a contact page for your Shopify store and customize the default form to fit your needs. This tutorial is aimed at freelancers and developers who want to learn the basics of customizing a contact page in Shopify.

Setting up the Contact Page:

- To set up a contact page, go to the pages section of your Shopify admin dashboard and click on add page.

- Name the page Contact or Contact Us and add a short description for simplicity.

- Apply the page template to page.contact and save it.

- This will bring up the default contact form on the front end.

Customizing the Contact Form:

- To customize the contact form, navigate to the theme files and create a new template for the contact page.

- Copy everything from the default template and paste it into the new template.

- Add or remove input fields as needed by editing the HTML code.

- Add a drop-down menu to ask users about their concern to segment emails better.

- Add a text field for the user's company.

- Add radio buttons to ask users how they discovered your store.

In this tutorial, we learned how to set up a contact page for a Shopify store and customize the default form. We also added a drop-down menu, a text field, and radio buttons to the contact form. I hope this tutorial was helpful for freelancers and developers looking to customize their Shopify contact page. Stay tuned for the next video where I will discuss practical use cases and pricing strategies for freelancers and web developers.

Start your free trial today!

Try Pipiads free for trial, no credit card required. By entering your email,
You will be taken to the signup page.