Skip to content

Embed your form in HTML (Astro and static sites)

You can embed your Formware form in any HTML-based website, including static site frameworks like Astro, by using a simple iframe.

This works for:

  • Static HTML websites
  • Astro projects
  • JAMstack sites
  • Any framework that outputs HTML
  1. Open your form in Formware.
  2. Go to the Share tab.
  3. Copy your form URL.

Paste the iframe code into your HTML file where you want the form to appear:

<iframe src="YOUR_FORM_URL" loading="lazy" width="100%" height="700" frameborder="0" marginheight="0" marginwidth="0">
</iframe>

Replace YOUR_FORM_URL with your actual form link.

<!DOCTYPE html>
<html>
<head>
<title>My Form Page</title>
</head>
<body>
<h1>Contact us</h1>
<iframe src="YOUR_FORM_URL" loading="lazy" width="100%" height="700" frameborder="0"> </iframe>
</body>
</html>

In an Astro component or page, you can use the same iframe:

---
const formUrl = "YOUR_FORM_URL";
---
<iframe src="{formUrl}" loading="lazy" width="100%" height="700" frameborder="0"> </iframe>

You can adjust the iframe to match your layout:

  • width=“100%” → makes the form responsive
  • height=“700” → increase for longer forms
  • loading=“lazy” → improves performance
  1. Open your website after deploying.
  2. Verify the form loads correctly.
  3. Submit a test response.

All responses — including partial and complete submissions — will appear in the Results tab in your Formware dashboard.