-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Contact form does not work due to recaptcha #167
Comments
A poor mans version could be to get rid of the ajax at all and to use features, like
|
I will have to test this and get back to you - Formspree may have updated something on their end. |
I'd love to know if you guys have fixed this issue.... |
@reidhock, you could replace all the ajax magic with a simple HTML-only form using formspree. I think this is what I did at my webpage: https://tobiasmaier.info/contact/ |
@tmaier I'm very new to github... I don't know what "creating a PR" means haha. I will def try what you said tho. |
I've done the same as @reidhock. Formspree does not allow form submissions using ajax from free accounts. I received the following response: |
@yasthil exactly, you need formspree's premium account to make Http requests work correctly. In my case the request returned 401. |
It looks like the formspree changed their free tier to no longer allow this to work. Can anyone confirm? |
@davidtmiller I can confirm that Formspree changed the free tier, you need to use the gold or platinum subscription to use HTTP requests: |
For anyone interested, I adjusted the contact form to work with Formspree free tier here. |
This took me a step in the right direction. What I did was:
It works for me now. |
Thanks @ciraben and @max-torch. As you described few things need to be adjustment. My approach was: Add the following lines to formspree:
form_id: <your-formspree-form-id> Adjust the form action url in action="https://formspree.io/f/{{ site.formspree.form_id }}" And in same file add textarea name which was missing, therefore not processed by formspree. <textarea name="message" rows="5" class="form-control" placeholder="Message" id="message" required
data-validation-required-message="Please enter a message."></textarea> |
I wondered why my contact form does not work.
I checked the network requests.
The request itself looked quite ok
But the HTML returned by formspree does not look that nice.
As you can see, it requests for a captcha to pass.
Please provide a way how to handle this within the theme.
The text was updated successfully, but these errors were encountered: