Why is my contact form submit button not working?

Hi all,

I have created a contact form, but the submit button does nothing at all.

Here is the code:

{%- assign formId = 'ContactForm' -%} {% form 'contact', id: formId %}

{% if form.posted_successfully? %}

{{ 'contact.form.posted_successfully' | t }}
{% endif %}

{% render ‘form-errors’, form: form %}

{{ 'customer.addresses.first_name' | t }}

{{ 'customer.addresses.last_name' | t }}









{{ 'customer.addresses.company' | t }}
{{ 'customer.addresses.city' | t }}
{{ 'customer.addresses.zip' | t }}
{{ 'customer.addresses.country' | t }}
{{ 'customer.addresses.phone' | t }}
{{ 'customer.register.email_field_placeholder' | t }} {% render 'field-error-message', form: form, field: 'email' %}

Business URL (website, Facebook Page, Instagramm Twitter or any other social handle)* <value="" required=""

*All fields above are required in order to be approved.

{% endform %}

{% render ‘content-close’, sidebar: false %}

Hope some

Hi @LCdotcom

We checked and saw that the contact form’s liquid code has no unusual problems. So if possible, please send us your contact form or access the store link. We will help you check more carefully.

Also, you can try these steps in this tutorial: https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/add-contact-form

Hi @LCdotcom ,

Please change all code:


{%- assign formId = 'ContactForm' -%}
{% form 'contact', id: formId %}

{% if form.posted_successfully? %}

{{ 'contact.form.posted_successfully' | t }}

{% endif %}

{% render 'form-errors', form: form %}

{% render 'field-error-message', form: form, field: 'email' %}

  

*All fields above are required in order to be approved.

{% endform %}

{% render 'content-close', sidebar: false %}

Hope it helps!

Hi,

I tried replacing the code and still nothing:

1- No confirmation of submission (green message or something)

2- No email notification sent to my email or store

Could it be something to do with the submit button not being linked to the right thing? Like is there a setting I need to enable within my Shopify account to allow customer registration or something like that? Can I perhaps use a different button?

TIA

Hi @LCdotcom ,

Please send your site and if your site is password protected, please send me the password. I will check it.