Solved

Editing contact form Dawn theme

designbymeg
Shopify Partner
20 0 3

Hi all,

 

My client wants to change the fields in the contact form using the Dawn theme.

 

Wondering how to change the "comment" placeholder text to "Enquiry Subject" and then adding an additional box for "message". 

Also, how to change "send" to "submit" on the button. 

 

Thanks in advance!

Accepted Solution (1)
GemPages
Shopify Partner
5587 1261 1192

This is an accepted solution.

Hi @designbymeg ,

 

The Shopify contact form fields are fixed and if we want to add the new fields, we need to edit some custom code into the contact-form.liquid.

 

GemPages_Agents_1-1666238104941.png

Please try to put the code below after the "Tel" field like the the screenshoot I sent above:

<div class="field">
        <input type="subject" id="ContactForm-subject" class="field__input" autocomplete="subject" name="contact[{{ 'templates.contact.form.subject' | t }}]" placeholder="{{ 'templates.contact.form.subject' | t }}">
        <label class="field__label" for="subjecten">{{ 'templates.contact.form.subject' | t }}</label>
      </div>

 

And here is the result I have on my end:

 

GemPages_Agents_3-1666238270576.png

Please let me know how it goes on your end 🙂

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

Replies 7 (7)

GemPages
Shopify Partner
5587 1261 1192

HI @designbymeg ,

 

I would like to suggest a solution here:

1. Go to Online Store in Shopify admin

2. Click Action > Select Edit code

GemPages_Agents_0-1666073960628.png

3. Search en.default.json and try to find the contact section like the screenshot below

GemPages_Agents_1-1666074050955.png

4. You can update the content on this section then click Save.

 

And we'll have this:

GemPages_Agents_2-1666074116772.png

Please try it and let us know how it goes.

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
designbymeg
Shopify Partner
20 0 3

Hi @GemPages 

Thanks so much for your help. The "message" and "submit" has changed. 

I just need an extra line before the "message" box with "Enquiry Subject". I have tried to add it in but it doesn't show. See attached.

 

Thanks!

 

Screen Shot 2022-10-20 at 10.04.53 am.pngScreen Shot 2022-10-20 at 10.05.23 am.png

 

GemPages
Shopify Partner
5587 1261 1192

This is an accepted solution.

Hi @designbymeg ,

 

The Shopify contact form fields are fixed and if we want to add the new fields, we need to edit some custom code into the contact-form.liquid.

 

GemPages_Agents_1-1666238104941.png

Please try to put the code below after the "Tel" field like the the screenshoot I sent above:

<div class="field">
        <input type="subject" id="ContactForm-subject" class="field__input" autocomplete="subject" name="contact[{{ 'templates.contact.form.subject' | t }}]" placeholder="{{ 'templates.contact.form.subject' | t }}">
        <label class="field__label" for="subjecten">{{ 'templates.contact.form.subject' | t }}</label>
      </div>

 

And here is the result I have on my end:

 

GemPages_Agents_3-1666238270576.png

Please let me know how it goes on your end 🙂

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
designbymeg
Shopify Partner
20 0 3

Amazing!!

Thank you SO much - it worked! 😀

GemPages
Shopify Partner
5587 1261 1192

Sounds great! Happy Selling @designbymeg 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
labayside
Visitor
2 0 0

Hey, thank for this super helpful guide!

Would it be possible to provide coding to add an option for customers to upload an image please?

Thanks so much

Jahid-KlinKode
Excursionist
145 1 4

Hey @designbymeg, need to customize your Shopify contact form? Look no further! This YouTube tutorial covers everything – from text fields to dropdowns, radio buttons, and checkboxes: