How to add a YouTube video to your Bubble.io app using dynamic data
In this Bubble.io tutorial video we demonstrate how to add a YouTube video to your Bubble.io by storing the video ID in your database and filling in the Video element source with dynamic data.
Unlock dynamic video power: Learn to add YouTube videos with dynamic data in Bubble!
Master marketplace app design: Create stunning hero sections and embed videos like a pro.
Elevate your Bubble skills: Transform your app with custom repeating group designs and dynamic video integration.
Adding a YouTube Video to Your Bubble.io App Using Dynamic Data
Here's a really quick guide for how to add a video using dynamic data to your Bubble app. So I have my marketplace app here that I'm building. I've got a slideshow. Check out our earlier videos to see how that works. And I'm going to add a big video down here to demonstrate my product.
Setting Up the Page Layout
Let me just have a look at my page layout. Pop open the reveal in elements tree. Okay, so I've got a hero section that's got columns right. So let's add in a group down here. And let's make the group into a column and set its max width to the same value that I've set my hero section to 1240. Okay, and then I add in a video element. And I'm going to make my video element 100%. Yeah, 55 that looks very good.
Configuring Dynamic Video Content
Okay, so how do I tell Bubble what video I want to show and how do I make it dynamic? So Bubble asks for a video ID. Now with YouTube, I believe that is this portion here. So I need to go into my database into my product, whatever data type you're using, create a new field called this video ID. And it's going to be text because it's storing text. Great. And then if I go into my app data, find my product video ID field is now that going to copy and paste.
Connecting the Video to the Page
Okay. And now I can add this as current page because my current page is my product. And then video ID. And to preview this, I'm going to have to preview my index page and click on my this just a repeating group for my products. You will have seen I've just got one product. So this links through to my sneakers. And okay, there we go.
Styling the Video Element
Not looking so good. Let's just style that a bit. Let's work through. So my group, I need to align that centered. Let's check that that's done it as the group is acting as a bit of a container. There we go. And then 55 fix. Let's just try that. So there is a little bit of a tricky thing going here because YouTube is basically acts as an iframe like an embed code is what Bubble was generating here.
Adjusting Video Dimensions
So I do actually think I've to give that a fixed value. So I'm going to kind of eyeball it, give it like a 750 value. But if you really want to work out, you would, you need to calculate using aspect ratios. Okay, there we go. That's almost perfectly done apart from I've got a slight black bar at the top.
Conclusion
So there have it that is in less than four minutes, how to add a video to a page using a YouTube video using dynamic data. Okay.
Ready to Transform Your App Idea into Reality?
Access 3 courses, 400+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 400+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
14-Day Money-Back Guarantee
We’re confident this bundle will transform your app development journey. But if you’re not satisfied within 14 days, we’ll refund your full investment—no questions asked.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
Not at all. Our courses are designed for beginners and guide you step-by-step in using Bubble to build powerful web apps—no coding required.
Forever. You’ll get lifetime access, so you can learn at your own pace and revisit materials anytime.
Our supportive community is here to help. Ask questions, get feedback, and learn from fellow no-coders who’ve been where you are now.
Absolutely. If you’re not satisfied within 14 days, just reach out, and we’ll issue a full refund. We stand by the value of our bundle.
Yes, this is a special limited-time offer. The regular price is $350, so take advantage of the discount while it lasts!