Hello,
is there a way to show the form response (i.e.: “Thank you: the form has been submitted”) on a page containing a custom form?
As in the standard form:
Thank you
Hello,
is there a way to show the form response (i.e.: “Thank you: the form has been submitted”) on a page containing a custom form?
As in the standard form:
Thank you
I found the answer by looking to the contact-form.liquid code.
Just add:
{%- if form.posted_successfully? -%}
##
{% render 'icon-success' %}
{{ 'templates.contact.form.post_success' | t }}
{%- elsif form.errors -%}
{{ form.errors | default_errors }}
{%- endif -%}
to the form code (where you want to confirmation message to appear).