Best practice for doing forms on static JAMStack sites like Flowershow #844
Replies: 4 comments 1 reply
-
@khalilcodes can you comment on this 😄 |
Beta Was this translation helpful? Give feedback.
-
We discussed this at length in this datopian issue 275 and converged on using sendinblue with simple html. Here are the very useful notes from there from @olayway Our needsForms:
Mail service
Current situationdatopian.com - MailchimpWe're currently using Mailchimp forms embedded using iframes as a temporary solution, because of issues we encountered when we tried using HTML form submissions or sending requests to Mailchimp API using a serverless function on Cloudflare as a proxy. (Current) Issues with iframes:
Issues with regular HTML form submissions:
So the user can't go back to the home page, and after clicking on the button some weird form errors will show up. We could create our own custom redirect page though. It's possible to use it instead. Issues with Ajax requests: From Mailchimp dev docs: ![[Pasted image 20230215122042.png]] Official Cloudflare example of a CORS headers proxy we could use: https://developers.cloudflare.com/workers/examples/cors-header-proxy/. Issues with Mailchimp notifications LifeItself - Mailchimp ❌
Flowershow - Netlify forms
Notes on CORS
Possible options and evaulationRegular HTML form submissions
Ajax requestsTo NOT CORS-enabled form service API (using a proxy server)
To CORS-enabled form service API (e.g. Basin)
Iframes (hosted by the mailing service)
RecommendationSince we have a green light for switching to Sendinblue:
|
Beta Was this translation helpful? Give feedback.
-
@olayway could you summarize the steps in a sendinblue solution here e.g.
If we can point to examples e.g. in life itself community repo that would be cool! |
Beta Was this translation helpful? Give feedback.
-
I've always liked Basin (usebasin) and you can connect it to Brevo (SendInBlue) see e.g. |
Beta Was this translation helpful? Give feedback.
-
What are the options for forms for Flowershow sites?
Would love some documentation about this (later we can migrate to docs) ... so that we know best practice (and options) for doing forms going forward
Things to answer
@khalilcodes @olayway can you share your notes / experiences ...
Beta Was this translation helpful? Give feedback.
All reactions