Closed brimwats1 closed 3 years ago
for the record, this is what formspree offers as a form
<!-- modify this form HTML and place wherever you want your form -->
<form
action="https://formspree.io/f/RANDOMSTRING"
method="POST"
>
<label>
Your email:
<input type="email" name="_replyto">
</label>
<label>
Your message:
<textarea name="message"></textarea>
</label>
<!-- your other form fields go here -->
<button type="submit">Send</button>
</form>
This is how anake does it, but I don't see a layouts/shortcode in alpha church:
Okay whatever I did above now seems to work—but recommend an update to the main repository. Sorry I don't know how to submit a pull request or I would!!
Thanks for raising this as I don't use formspree, so I didn't know of the change.
Is the only change between legacy forms and the new formspree way is that instead of having an email address in the action
it's now a unique string?
If that's the case, your solution of putting /f/RANDOMSTRING
as the formspree_email
should work.
I'd be happy to update the theme, replacing formspree_email
with form_id
- as this seems to be the way forward for formspree. The only problem is this is a breaking change for legacy users...
The old formspree URLs no longer work! Something I found out the hard way when I stopped getting emails for a time 😅 so it is already broken for legacy users I'd think!
Can you pull this update and double-check it works as expected?
Note - I've changed the variable name from formspree_email
to form_id
to fit with their terminology.
Confirmed fixed! Thanks so much!
Formspree no longer uses an email. Instead they use an endpoint like this:
https://formspree.io/f/RANDOMSTRING
I tried changing the [params.contact] to
This seems to be reflected in the index.html
But when I try to use the form on the website it redirects to a
https://formspree.io/MY@EMAIL
rather than the form. It asks me to login at formspree. I can't figure out how to make it go the right route tho :(