digital-resources icon indicating copy to clipboard operation
digital-resources copied to clipboard

Form creation and validation

Open ViorelMocanu opened this issue 1 year ago • 0 comments

Inspiration for Astro forms:

  • https://docs.astro.build/en/recipes/build-forms/

Requirement - hybrid rendering to allow SSR on a few routes like /contact and SSG for the rest. Inspiration:

  • https://astro.build/blog/hybrid-rendering/
  • https://docs.astro.build/en/guides/server-side-rendering/

Inspiration for validating with Zod:

  • https://blog.robino.dev/posts/svelte-zod-error
  • https://medium.com/@brianridolcedev/how-to-validate-your-form-data-with-zod-add25f90e7b3
  • https://blog.bitsrc.io/react-form-validation-5aa06193bec4
  • https://catalins.tech/form-validation-with-react-hook-form-zod-typescript/

Handling the form submit might be done with:

  • https://www.netlify.com/products/forms/ e.g. https://github.com/netlify-templates/astro-toolbox/tree/main
  • https://docs.astro.build/en/guides/integrations-guide/netlify/
  • https://www.netlify.com/blog/deploy-an-astro-site-with-forms-serverless-functions-and-redirects/

ViorelMocanu avatar Oct 04 '23 10:10 ViorelMocanu