# Embed the Waitlist Form

> Embed MeetOne's waitlist sign-up form on your website: the /w/ link, iframe snippet, meetone-waitlist events, colors, CSP and troubleshooting.

Source: https://help.meetone.io/developers/integrations/embed-waitlist-form
Last updated: 2026-11-06

---

The waitlist form lets interested people sign up for your organization's waitlist. You embed it in an iframe on your website, and sign-ups appear in MeetOne after the person has confirmed their email address.

## Overview

The form lets people:

- Enter their contact details and their request
- Answer the questions of your waitlist questionnaire
- Agree to the processing of their data and submit

After submitting, they see a notice that a confirmation email is on its way. An entry only appears in your waitlist once the email address has been confirmed through the link in that email, which is valid for 7 days. The confirmation link opens a regular MeetOne page, not your iframe.

The form sends its JavaScript events under the context `meetone-waitlist`.

## Prerequisites

- A MeetOne tenant domain (for example `acme.meetone.io`) with the waitlist enabled.
- You are an organization owner who manages the waitlist. The link is under **Organization › Integrations › Waitlist link**.
- **Link active** is switched on. While it is off, visitors see a notice that the waitlist is not available.
- The ability to add HTML and JavaScript to your website.

## Getting the Integration URL

### Copying it from MeetOne

Under **Organization › Integrations › Waitlist link** you find **Waitlist – public link** (**Waitlist link**) and **Waitlist – iFrame integration** with the ready-made code.

### Constructing the URL

The waitlist belongs to the organization, so there is one link per organization and no member variants:

```
https://[your-tenant-domain]/w/[WAITLIST_TOKEN]?iframe=true
```

**Example:**

```
https://acme.meetone.io/w/abc123def456?iframe=true
```

> **Warning**
>
> **Create new link** on the integration page invalidates the current link, including the one in your iframe. Update the `src` attribute afterwards.

### Customize colors (optional)

Append `button_color`, `button_label_color` or `highlight_color` with a hex value (`#rgb` or `#rrggbb`; encode `#` as `%23`). Invalid values are ignored.

```
https://acme.meetone.io/w/abc123def456?iframe=true&button_color=%230066FF&highlight_color=%230066FF
```

## Basic Integration

**1. Add the following styles to your HTML document.**

```html
<style>
  .meetone-waitlist {
    max-width: 768px;
    padding: 16px;
    min-height: 900px;
    margin: 0 auto;
  }

  .meetone-waitlist iframe {
    width: 100%;
    border: none;
    min-height: 900px;
    /* These styles are example styles, adjust them to your needs */
    box-shadow: 0 0 5px rgba(0,0,0, .1), 0 0 0 1px rgba(0,0,0, .1);
    border-radius: 16px;
    background: #fff;
  }
</style>
```

**2. Add the iframe to your HTML document.**

```html
<div class="meetone-waitlist">
  <iframe
    id="waitlist-iframe"
    src="https://acme.meetone.io/w/[WAITLIST_TOKEN]?iframe=true"
    width="100%"
    height="900">
  </iframe>
</div>
```

The `height` attribute is only a starting point. The form sends its real height as events.

## JavaScript Events

The form sends two events to your page with [`postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage): `meetone.iframe-ready` (loaded) and `meetone.iframe-resize` (size changed, for example when validation errors appear or the confirmation notice replaces the form). `event.data` carries `type`, `width`, `height` and `context` (`"meetone-waitlist"`).

```javascript
window.addEventListener("message", (event) => {
  if (event.origin !== "https://acme.meetone.io") return;
  if (event.data?.context !== "meetone-waitlist") return;
  if (event.data.type !== "meetone.iframe-ready" && event.data.type !== "meetone.iframe-resize") return;

  document.getElementById("waitlist-iframe").style.height = `${event.data.height}px`;
});
```

Always check `event.origin` and `context`. The notices for an unavailable waitlist and an invalid link send the same events with the same context.

## Security Considerations

If your website uses a Content Security Policy (CSP), allow frames from your MeetOne tenant domain:

```html
<meta http-equiv="Content-Security-Policy"
      content="frame-src https://acme.meetone.io;">
```

> **Warning**
>
> Always use HTTPS for both your page and the iframe. The form collects personal data, possibly health-related.

## Troubleshooting

### The iframe says the waitlist is not available

**Link active** is off, or the waitlist is not enabled for your account. Switch the link on under **Organization › Integrations › Waitlist link**.

### The iframe shows an invalid link

The link was replaced with **Create new link**. Copy the new address into the iframe.

### Blank iframe, events not firing, wrong height

Check the CSP and mixed content in the browser console, that `iframe=true` is in the URL, and that your listener checks `event.origin` and the context `meetone-waitlist`. Remove a `min-height` that is larger than the form needs.

## Related

- [Waitlist API overview](https://help.meetone.io/developers/waitlist-api/overview) – read the sign-ups into your own system
- [Embed the Website Widget](https://help.meetone.io/developers/integrations/embed-website-widget) – offers the waitlist as a function without an iframe of your own

Questions? Contact us at [support@meetone.io](mailto:support@meetone.io).
