> ## Documentation Index
> Fetch the complete documentation index at: https://docs.azvian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing a form

> Share a link, embed the form with an iframe, or post a plain HTML form to your install

Open a form under **Forms**. Its page has a **Share it** section with three ways to publish it. They all deliver answers to the same inbox.

## 1. The hosted page

**Link** is the form's own page, `https://your-install/f/your-address`. Share it in an email, a message, a QR code or a button on your website. It carries your accent colour.

## 2. An iframe on your website

Under **Put it on your website (iframe)**, copy the code and paste it where the form should appear. It looks like this:

```html theme={null}
<iframe id="azf-your-address" src="https://your-install/f/your-address?embed=1" style="width:100%;border:0;min-height:480px" title="Your form"></iframe>
<script>window.addEventListener("message",function(e){var f=document.getElementById("azf-your-address");if(f&&e.source===f.contentWindow&&e.data&&e.data.azvianFormHeight){f.style.height=e.data.azvianFormHeight+"px"}});</script>
```

The frame **resizes itself** to fit the form, so there is no scrollbar inside it. Always copy the code from your own form's page, because it contains your address and the right frame id.

> [!NOTE]
>
> Only the embed address (`?embed=1`) can be shown inside another site. The rest of the app, including the sign-in page, refuses to be framed.

## 3. Your own HTML form

If you already have a form on your site, point it at your install instead:

```html theme={null}
<form method="post" action="https://your-install/f/your-address">
  <input name="name">
  <input name="email" type="email">
  <textarea name="message"></textarea>
  <button>Send</button>
</form>
```

Use the **field names shown on the form's edit page** (each field has one). Answers arrive in the inbox exactly as with the hosted form, and validation, notifications, auto-replies and webhooks all apply. The trap field and timing check are optional for forms posted from elsewhere, but the **rate limit** still applies: see [Spam and privacy](https://docs.azvian.com/forms/spam-and-privacy.md).

## After a visitor sends the form

They see your **success message**, or are sent to your **redirect address** if you set one. If something is missing or invalid they are asked to fix the highlighted fields and send it again, and what they typed is kept.

## Closing a form

A closed form shows your **closed message** instead of the form. Close a form when a campaign ends or an event is full, and reopen it any time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.