Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromEmail failed validation - No Error #145

Closed
schellenbergk opened this issue Oct 4, 2018 · 4 comments
Closed

fromEmail failed validation - No Error #145

schellenbergk opened this issue Oct 4, 2018 · 4 comments
Assignees
Labels

Comments

@schellenbergk
Copy link

Hi Guys,

If an incorrect email is entered in the input field such as test@test the browser validation accepts it but the form does not get sent. In the logs I get:

[warning] [application] Craft\ContactFormModel->fromEmail failed validation: Your Email is not a valid email address.

but the form error is not shown when using:

{% macro errorList(errors) %}
              {% if errors %}
                  <ul class="errors">
                      {% for error in errors %}
                          <li>{{ error }}</li>
                      {% endfor %}
                  </ul>
              {% endif %}
          {% endmacro %}
@luke-nehemedia
Copy link

Same here. An Exception is thrown and the script breaks.

@bgarrant
Copy link

Same here. Any fix?

@angrybrad angrybrad self-assigned this Oct 27, 2018
@angrybrad angrybrad added the bug label Oct 27, 2018
@bgarrant
Copy link

How do we get this fix Brad? Will it just be in the next release or should we mod the files? Thank so much for fixing.

@angrybrad
Copy link
Member

It'll be in the next release, or you can modify your composer.json to "craftcms/contact-form": "v2.x-dev as 2.2.2" to have it start pulling from the latest commit in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants