#Astro Form
1 messages · Page 1 of 1 (latest)
Hi @cursive tiger. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, Astro allows you to enhance a form to be async by intercepting the form submission using JavaScript. To do this, you'll need a project with SSR (output: 'server') enabled and a UI Framework integration installed. Here's a brief overview of the process:
- Create an HTML form in your Astro component.
- Add a script tag to your Astro component to handle form submission.
- Prevent the default form submission behavior and send the form data to an API endpoint using JavaScript.