I’m trying to place a contact form in a pop up window inside my product pages. all looks great so far, except the send button has been replaced with the add to cart button, not sure what I’m doing wrong here? no matter what I do, type=“submit” always overwrites any value or class I include with it?
{{ block.settings.text | escape }}
{% form 'contact', id: formId %}
{% if form.posted_successfully? %}
**{{ 'contact.form.post_success' | t }}**
{% else %}
{% if section.settings.contact_title != blank or section.settings.contact_text != blank %}
{% if section.settings.contact_title != blank %}
## {{ section.settings.contact_title | escape }}
{% endif %}
{% if section.settings.contact_text != blank %}
{{ section.settings.contact_text }}
{% endif %}
{% endif %}
{% if form.errors %}
{% for field in form.errors %}
- {{ field | replace: 'body','Message' | capitalize }} - {{ form.errors.messages[field] }}
{% endfor %}
{% endif %}
{%- assign title_handle = block.settings.title | handle -%}
{% endif %}
{% endform %}