- Blog
- Bubble Waitlist: HTML Element or Iframe
article
Bubble Waitlist: HTML Element or Iframe
Add a Bubble waitlist inside an HTML element — Bubble runs the script, so the widget mounts directly. Plus the two Bubble quirks and the iframe fallback.
Bubble is a no-code app builder, and its native signup — the built-in Bubble form — is tied to Bubble workflows, not a waitlist with referral links and broadcast emails. GetWaitly's widget can still collect waitlist signups on a Bubble page, but Bubble has a quirk worth knowing before you paste code.
Bubble's HTML element does run JavaScript — its manual says you can write custom code in it — so the widget can live directly on your page. Two Bubble quirks still need handling, and this guide covers both, plus the iframe fallback for apps that fight third-party scripts.
The short answer
On Bubble, put the inline widget in an HTML element: paste the container div and the script tag into the same element, give it a height, and publish. Bubble's HTML element executes JavaScript — its own manual says you can write custom JavaScript in it — so the widget runs directly rather than needing a wrapper. Most people are done in about five minutes.
If the widget misbehaves in your app, the fallback is the hosted page in an iframe (below), which needs no script at all.
What you need
- A GetWaitly account with a waitlist created (free plan covers 100 subscribers).
- Your waitlist's public ID from the Widget/Embed section of the dashboard (the hosted page URL is only needed for the fallback).
- A Bubble app and access to its editor. The HTML element is available in Bubble's visual elements.
What is different about Bubble's HTML element
Bubble's HTML element lets you place HTML, CSS, and JavaScript, and the scripts do run — its manual says you can write custom JavaScript in it, which is why the inline widget works here. Three things do need care:
- The element does not auto-resize. Bubble gives it a height, so set 350–450px and check on mobile.
- The script must sit in the same element as the div. Split them across two HTML elements and the container can render before the script exists. Our script does watch for late containers, but there is no reason to depend on it.
- The popup is the awkward one. Its trigger and script share an element, and the modal renders inside that element's box rather than over the page — so on Bubble a plain link to the hosted page usually looks better than a popup.
If the inline widget will not render in your app at all, the hosted page in an iframe is the fallback below: it needs no script.
Step 1 — Copy the widget snippet
In GetWaitly, open the waitlist and go to Widget. You need two lines: the container div and the script.
Step 2 — Add an HTML element in Bubble
- Open your Bubble app in the Design tab.
- In the visual elements panel, find the HTML element and drag it onto the page where the waitlist should appear.
- Set its height to 350–450px — Bubble will not resize it to the form.
Step 3 — Paste both lines into the element
Paste the div and the script into the HTML element's content, together:
<div class="gw-widget" data-waitlist-id="YOUR_WAITLIST_ID"></div>
<script src="https://getwaitly.com/widget.js" defer></script>
Step 4 — Preview and test
Bubble's design canvas does not execute scripts, so click Preview or open the live app. Submit a test email and confirm the subscriber lands in your GetWaitly dashboard.
Fallback: the hosted page in an iframe
If the widget will not render in your app — some heavily dynamic pages fight with third-party scripts — embed the hosted page instead. It needs no script and cannot conflict with anything.
In the same HTML element, paste:
<iframe
src="https://getwaitly.com/w/YOUR_WAITLIST_ID"
width="100%"
height="600"
style="border:0;"
title="Join the waitlist"
></iframe>
Set the element to at least 600px. The hosted page is a complete page designed to fill a frame, so it needs more room than the inline form.
Alternative: site-wide script
Bubble can also load a script app-wide via Settings → SEO / metatags → Script/meta tags in body:
<script src="https://getwaitly.com/widget.js" defer></script>
Then each page only needs the container div in an HTML element. This is worth doing if the form appears on several pages.
Testing checklist
- Test in Preview or the live app, never the design canvas — Bubble does not execute scripts there.
- Give the HTML element enough height (600px for the iframe; 350px+ for the inline widget).
- Confirm the
data-waitlist-idmatches your waitlist's public ID, or that the iframe URL uses it. - Submit a real test email and check your GetWaitly dashboard.
FAQ
Does GetWaitly work on Bubble?
Yes. The inline widget works inside a Bubble HTML element, because Bubble executes JavaScript there. If it does not render in your app, the hosted-page iframe is the fallback that needs no script.
Why does the widget not render on Bubble?
Check three things: the script and the div are in the same HTML element, the element has a real height (Bubble does not auto-resize it), and you are looking at Preview or the published app rather than the design canvas. Our script also watches for containers added later, so a form rendered after a state change will still mount.
Can I use the popup widget on Bubble?
The trigger button and the script need to be in the same HTML element, and the popup renders inside that element's box rather than over the whole page — so on Bubble a plain link to the hosted page usually looks better. For a true full-page modal you would need a Bubble plugin, which is more work than the waitlist is worth.
Do I need to know Bubble workflows?
No. The iframe approach is static HTML — no workflows or plugins required. If you want to react to a signup inside Bubble (for example, hide the form after joining), that would need Bubble logic, but the waitlist itself does not.
Can I match my Bubble app's design?
Both methods use your GetWaitly accent colour and font, so they look consistent with your brand without inheriting your Bubble styles. Set the branding in GetWaitly settings; Bubble CSS does not reach inside the widget.
Related guides
-
How to Add a Waitlist to Notion — the same hosted-page approach
-
Add a Waitlist to Your Website: Every Platform Guide — the full directory of platform guides
-
Waitlist Widget for Any Website — the generic HTML embed
-
Which Form Builder for a Waitlist? — form builders vs a dedicated waitlist tool
-
Waitlist Tools: 7 Best for Solo Founders — the full comparison
The simple, affordable waitlist tool for founders and makers. Start free in 5 minutes — no credit card required. Try GetWaitly free →

written by
Aymane E.
Founder of GetWaitly. I write about validating ideas, pre-launch, and growth from building a waitlist tool as a solo founder.
Follow on X