customer_message.errors is always true on commit
ulitiy opened this issue · 1 comments
ulitiy commented
http://doc.locomotivecms.com/guides/create-a-contact-form
{% if customer_message.errors %} will always be true, so that example is incorrect. It works only because of different success/error callbacks.
ulitiy commented
So the temporary solution is to use
{% capture err %}{{ customer_message.errors | first}}{% endcapture %}
{% if err != "" %}
that doesn't seem right