Prerequisites

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

1. Create the project

Make a new folder and create a index.html inside with the following content. Then update the action with your Endpoint URL.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Formizee HTML Example</title>
  </head>
  <body>
    <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>
  </body>
</html>

2. Install the server

pnpm add -D http-server

After install, add this script to your package.json

"scripts": {
  "dev": "http-server ."
},
"devDependencies": {
  "http-server": "14.1.1"
},

3. Run in local

pnpm run dev

4. Try it yourself

Formizee HTML Example

See the full source code