Forms for static pages
-
April 12, 2022 at 4:06 pm #7248
[anonymous]
hi all!
Llife forced me to learn new skills and i am a very beginner web creator. Thank God that i found Publii! π
I am asking for help to build forms.
I read this: https://getpublii.com/blog/does-your-website-need-a-contact-form.html but is there any other way than using external and paid solutions?
I want to build a website on CloudFlare Pages (via Github Pages via Publii) i tried to understand such descriptions:
https://developers.cloudflare.com/pages/tutorials/forms/
https://developers.cloudflare.com/pages/platform/build-configuration/#language-support-and-tools
https://vite-plugin-ssr.com/cloudflare-pages
https://www.npmjs.com/package/serverless-form
but it’s a black magic for me: is this a good way or whether there are other and simpler?
Thank you for each tip!
April 12, 2022 at 4:14 pm #7249
Bob
This reply has been marked as private.April 12, 2022 at 4:20 pm #7250
[anonymous]
Hi Bob, thank you for a quick response!
Will we remove this post and write new in Plain text?
I personally cluttered nothing – I used only the built-in post πApril 12, 2022 at 4:29 pm #7251
Bob
Now your post is ok, the previous one was blocked due to the “spam content”.
April 14, 2022 at 12:44 pm #7264
[anonymous]
Has many external solutions. for example, you can oar formsubmit and hide your real email with altmails.
you can even create a professional email of the “admin@yourdomain.com” type using mailtie.April 14, 2022 at 4:46 pm #7267
[anonymous]
[anonymous] wrote:Has many external solutions. for example, you can oar formsubmit and hide your real email with altmails.
you can even create a professional email of the βadmin@yourdomain.comβ type using mailtie.
I second FormSubmit. Here are some instructions: https://forum.getpublii.com/topic/how-can-i-add-a-simple-contact-form/#post-6862
April 15, 2022 at 9:48 am #7273
[anonymous]
I just tested a very nice solution that uses “Google App Script” as the server language.
https://jordanrhea.com/blog/contact-form/
On P. it works very well, but you need to customize some CSS to make it graphically compatible with the theme.
This solution uses AJAX JQuery, if you want I think it is quite easy to convert to pure JS.
April 15, 2022 at 2:54 pm #7279
[anonymous]
Thank you guys for every idea, but I have 3 problems with this:
1. I do not want to connect to any third-party.
2. I want to set up a page on CloudFlare Pages, and she is static and “serverless”.
3. I do not have any skills (edition of CSS, AJAX, JQuery overgrown me) πI was hoping that someone would explain to me how to use, for example CloudFlare Workers step by step.
https://workers.cloudflare.com/ + https://www.cloudflare.com/learning/serverless/glossary/serverless-and-cloudflare-workers/ + https://www.npmjs.com/package/serverless-form
or
https://developers.cloudflare.com/pages/tutorials/forms/
https://developer.mozilla.org/en-US/docs/Learn/FormsBut I understand that maybe it can not be easily performed in Publii.
April 15, 2022 at 3:30 pm #7281
[anonymous]
I can’t edit the post so just add an idea:
Maybe someone would like to write a plugin for Publii making such forms for CF Pages? There may be a paid plugin π