Remove email input from contact form

Topic summary

Goal: remove the email field from the Dawn theme’s contact form without triggering errors.

  • The email input was deleted from contact-form.liquid; the field no longer displays, but submitting the form with only name and phone returns “invalid email.”
  • One suggestion repeated removing the email input block; this had already been done and didn’t stop the error.
  • Another suggestion removed the template’s email error message block; the submit still shows “Email is invalid,” indicating validation persists beyond the UI.
  • A follow-up notes this only hides the message and does not disable the underlying validation.

Current state:

  • Validation for the email field remains active even after removing the input and error markup.
  • A screenshot was shared showing email-related code commented out, and a URL demonstrates the error anchor targeting the email field.

Outcome/next steps:

  • No confirmed solution or workaround was provided to disable or bypass the email validation.
  • Key unresolved question: how to fully remove or override the email requirement/validation in Shopify’s contact form logic. The thread remains open with others asking for a fix.
Summarized with AI on January 15. AI used: gpt-5.

Hi everyone!
I’m using Dawn theme and I want to remove Email input from the contact form.
I removed this part of my code in contact-form.liquid file:

{{ 'templates.contact.form.email' | t }} * {%- if form.errors contains 'email' -%} {{ 'accessibility.error' | t }} {% render 'icon-error' %}{{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }} {%- endif -%}

And email input was really removed from my contact from, but still when I send Name and phone in my contact form it’s written “invalid email”.
How can I solve it?

1 Like

Hello @Ksu10005

You can modify the contact-form.liquid file. Here’s how you can do it:

1.Locate the contact-form.liquid file in your theme’s code editor.
2.Find the code that represents the email input field. It may look similar to this:


  
  

3.Remove the entire code block representing the email input field. After removing it, the code should look like this:


  1. Save the changes to the contact-form.liquid file.

By removing the email input field from the contact-form.liquid file, the email field will no longer be displayed in the contact form on your website.

Hello @Ksu10005

The reason why you are still getting an error message about an invalid email address even though you have removed the email input from your contact form is because the email validation logic is still in place.

To fix this, you need to remove the email validation logic from your contact form. You can do this by editing the contact-form.liquid file and removing the following code:

{% if form.errors contains ‘email’ %}

{{ ‘accessibility.error’ | t }}
{% render ‘icon-error’ %}{{ form.errors.translated_fields[‘email’] | capitalize }} {{ form.errors.messages[‘email’] }}


{% endif %}

Once you have removed this code, you should no longer get an error message about an invalid email address when you submit your contact form without an email address.

Hello @magecomp
I did it, but it still shows me Email is invalid

Though I commented all the code with email

This only removes the error message. The validation is still there.

I am also trying to do the same. Have you succeeded in doing so? If so, could you share the solution?

Any luck on this?