Add a contact form to an Astro site with form actions
Handle contact form submissions in an Astro site using Astro Actions or a plain POST.
- 1
Choose your method
For Astro 5+ use Astro Actions (server-side). For static exports, use a client-fetch island or a plain `<form method='POST'>` to FormLoom.
- 2
Configure the endpoint
Set the form action to your FormLoom endpoint or call `fetch` from an island.
- 3
Keep it zero-JS if possible
A plain `<form method='POST'>` to FormLoom sends zero JavaScript — ideal for Astro's zero-JS default.
FAQ
Yes — a plain form POST to FormLoom requires no JavaScript in the browser.