Hello,
I am building a second contact form for my site, leaving the original one on my contact page (Dawn theme)
I created a new section and called is “Contact-Form-Custom.liquid” and copy-paste the form code from the original “Contact-form.liquid”. All I’m trying to do is to add 3 custom fields right underneath the “Phone” field that will be named: “Business name”, “Where are you located?” and "What type of business do you have?
Can someone, please, help me to modify this code to reflect adding these 3 additional fields?
Thank you so much!
{%- form ‘contact’, id: ‘ContactForm’, class: ‘isolate’ -%}
{%- if form.posted_successfully? -%}
{% render 'icon-success' %} {{ 'templates.contact.form.post_success' | t }}
{%- elsif form.errors -%}
{% render 'icon-error' %} {{ 'templates.contact.form.error_heading' | t }}
{{ 'templates.contact.form.name' | t }}
{{ '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 -%}
{{ 'templates.contact.form.phone' | t }}
{{- form.body -}}
{{ 'templates.contact.form.comment' | t }}
{{ 'templates.contact.form.send' | t }}
{%- endform -%}