Prerequisites

To get the most out of this guide, you’ll need to:

1. Create a Astro project

pnpm create astro@latest formizee-astro-example

2. Update the main page

Update the file under src/pages/index.astro with the next code, then update the Endpoint URL.

index.astro
<form method="post" action="https://api.formizee.com/v1/f/enp_123456">
  <label for="name">
    Name
    <input id="name" autoComplete="name" name="name" />
  </label>
  <label for="email">
    Email
    <input id="email" autoComplete="email" name="email" />
  </label>
  <button type="submit">Submit</button>
</form>

3. Run in local

pnpm run dev

4. Try it yourself

Formizee Astro Example

See the full source code