The online booking form lets participants pick a real free time slot and book it themselves. You embed it in an iframe on your website, and the booking ends in a confirmed appointment instead of a request someone has to answer.

Overview

The form lets participants:

  • Choose an appointment type (the step is skipped when only one type can be booked)
  • With an organization link, choose the professional
  • Pick a date and time from the real, free slots
  • Enter their personal information (name, email, phone)
  • Add an optional message and attach files
  • Accept the privacy policy and book

When the booking succeeds, the form is replaced with a confirmation ("Your appointment is confirmed!") and the appointment is created at once. The participant and the professional both receive a confirmation email.

The form sends its JavaScript events under the context meetone-online-booking. Do not reuse a listener for the appointment request form here: that form uses meetone-appointment-form.

This is the Appointment booking integration (Integrations › Appointment booking). It is not the appointment request form (Integrations › Appointment requests), where participants only propose up to four time slots and a professional confirms later. For that form, see Embed the Appointment Request Form.

Prerequisites

  • A MeetOne tenant domain (for example acme.meetone.io) with appointment booking enabled — Integrations › Appointment booking appears in the sidebar.
  • At least one appointment type that can be booked online, and free slots in the professional's availability. Without them the form shows a notice instead of the booking form.
  • The ability to add HTML and JavaScript to your website.

Getting the Integration URL

Copying it from MeetOne

The ready-made URL is in MeetOne, under Integrations › Appointment booking: Appointment Booking — Direct Link (Your Appointment Booking URL) and Appointment Booking — iFrame Integration. Organization owners find the same under Organization › Integrations › Appointment booking, with one URL for the whole organization and one per member under Appointment Booking — Organization URLs.

Constructing the URL

The URL is built from a booking token — a professional's user_token, or your organization's token:

https://[your-tenant-domain]/online-booking/[BOOKING_TOKEN]/new?iframe=true

Example:

https://acme.meetone.io/online-booking/abc123def456/new?iframe=true
Token What the form offers
A professional's token Slots of that professional only
The organization's token A professional selection; participants book with any member who offers the chosen appointment type

The iframe=true parameter activates the iframe layout: no main navigation, iframe-specific styling. Without it the form appears in its full-page layout.

Customize colors (optional)

Append any of these URL parameters with a hex color value (#rgb or #rrggbb; encode # as %23). Values that are not valid hex colors are ignored, and without the parameters the default colors apply.

  • button_color – color of the submit button (the hover shade is derived automatically)
  • button_label_color – text color of the button label (default: white)
  • highlight_color – highlight color of the form fields (focus outline)
https://acme.meetone.io/online-booking/abc123def456/new?iframe=true&button_color=%230066FF&highlight_color=%230066FF

Basic Integration

1. Add the following styles to your HTML document.

<style>
  .meetone-online-booking {
    max-width: 768px;
    margin: 0 auto;
  }

  .meetone-online-booking iframe {
    width: 100%;
    border: none;
    min-height: 800px;
  }
</style>

This is the snippet MeetOne shows in the integration. The min-height keeps the frame tall while the form loads. Leave it out if you want the frame to shrink again once the form has become shorter, for example after the confirmation replaces it.

2. Add the iframe to your HTML document.

<div class="meetone-online-booking">
  <iframe
    id="online-booking-iframe"
    src="https://acme.meetone.io/online-booking/[BOOKING_TOKEN]/new?iframe=true"
    width="100%"
    height="800">
  </iframe>
</div>

3. Resize the iframe from the form's events (next section).

JavaScript Events

The form runs on your MeetOne tenant domain, a different origin than your website, so it sends each event to your page with postMessage. Listen for message events on window and read the event from event.data:

  • type — the event name, "meetone.iframe-ready" or "meetone.iframe-resize"
  • width — the form's current width
  • height — the height the iframe needs to show the form without scrolling
  • context — "meetone-online-booking"

Always check event.origin against your tenant domain and context so you only react to this form.

meetone.iframe-ready is sent when the form has loaded, and again when the confirmation replaces it. meetone.iframe-resize is sent whenever the form's dimensions change: a different appointment type or professional changes the slot list, validation errors appear, or the confirmation is shown.

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

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

Embedding forms for several professionals

Use one iframe per booking token with unique IDs, and identify the sender with event.source:

window.addEventListener("message", (event) => {
  if (event.origin !== "https://acme.meetone.io") return;
  if (event.data?.context !== "meetone-online-booking") return;

  document.querySelectorAll(".meetone-online-booking iframe").forEach((iframe) => {
    if (iframe.contentWindow === event.source) {
      iframe.style.height = `${event.data.height}px`;
    }
  });
});

To embed a single member's form instead of the organization's, take the snippet shown for the organization, replace the address in the src attribute with the member's link and append ?iframe=true.

Security Considerations

Content Security Policy

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

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

HTTPS requirement

Always use HTTPS for both your page and the iframe. The form collects personal data.

Troubleshooting

The iframe shows a notice instead of the form

The booking link is valid, but the form has nothing to offer: appointment booking is not enabled, no appointment type can be booked online, or there are no free slots. Check the professional's availability and appointment types in MeetOne.

Blank iframe or an error

  • Invalid booking token — copy the URL from Integrations › Appointment booking instead of typing the token.
  • CSP blocking the iframe, or mixed content (an HTTPS page loading an HTTP iframe URL). Check the browser console.

Events not firing, wrong height

  • Check event.origin against the host in the iframe's src, including https://.
  • Check context against meetone-online-booking, not meetone-appointment-form.
  • Listen for message, not for custom DOM events: those are dispatched only inside the iframe's own window.
  • Remove a fixed min-height if the frame stays too tall.

MeetOne's navigation shows inside the iframe

Add ?iframe=true to the URL.

Questions? Contact us at support@meetone.io.