Skip to main content
Add your OrbitForms forms directly to your website using our embed codes.

Getting Your Embed Code

1

Open your form

Open your form in the dashboard
2

Go to Share

Go to the Share tab
3

Copy embed code

Select your embed type and copy the code

Embed Types

Standard Embed (iframe)

Recommended — Pure HTML, no third-party script. Renders even when ad blockers, corporate firewalls, or strict CSPs would block scripts.
The most reliable way to embed your form. Just paste the iframe where you want the form to appear and pick a fixed height that fits your form.

Best for

  • Inline forms on landing/demo pages
  • Maximum reliability across browsers
  • Static sites, Webflow, WordPress

Trade-offs

  • Fixed height (no auto-resize)
  • No popup / slider / sidetab modes

JavaScript Embed

Loads the form via our embed script. Required for popup, slider, and sidetab modes; adds auto-resize, event callbacks, and pre-fill support. Use this when you need those features; otherwise the iframe embed above is more reliable.

Features

  • Auto-resizing
  • Popup / slider / sidetab support
  • Event callbacks
  • Pre-fill support

Data Attributes

  • data-orbit-form: form slug
  • data-orbit-team: team ID
  • data-orbit-embed: popup | slider
  • data-orbit-height: custom height
Recommended — Uses the native browser <dialog> element with inline JavaScript. No third-party script, so it can’t be blocked by ad blockers or strict CSPs.
Open your form in a centered modal when a button is clicked. Add the generated trigger class to any button or link to wire it up. Use a unique class per form if you have multiple popup embeds on the same page.
The native <dialog> element handles the backdrop, escape-to-close, focus trap, and ARIA roles automatically.

Script-based popup (legacy)

If you need auto-resize, event callbacks, or slider/sidetab/popover modes, use the script embed instead:
The team value is the first 8 characters of your team UUID, visible in the Share tab.
For detailed setup instructions for Webflow, WordPress, Squarespace, and more — see the Embed Script documentation.

Pre-filling Fields

You can pre-fill form fields using URL parameters:

Form Events

Listen to form events using CustomEvents to trigger custom actions:

Responsive Behavior

Forms automatically adapt to fit their container. Here’s what to know about field layouts:

Half-Width Fields

Fields set to “1/2” width will display side-by-side when the embed container is 510px or wider. Below this width, all fields stack vertically for better mobile usability.
  • ≥ 510px: Half-width fields appear side-by-side
  • < 510px: All fields stack vertically

Platform-Specific Guides

  • WordPress
  • Webflow
  • Squarespace
  • Shopify
  • React / Next.js

Next Steps

Embed Script Reference

Full API reference, popup setup, and platform guides

Submissions

View and manage responses