Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

How to display YouTube videos using embed code and dynamic data on Bubble.io

In this Bubble.io video tutorial we show how to embed a YouTube video in your Bubble app with dynamic data taken from your database.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
How to display YouTube videos using embed code and dynamic data on Bubble.io
Explore these topics...
Design
YouTube
Database

With just this tutorial learn...

Unlock YouTube embed secrets: Learn how to make your videos truly responsive and edge-to-edge in Bubble.io.

Master dynamic video templates: Discover how to create a flexible video page that works with any YouTube ID in your Bubble database.

Transform static embeds into dynamic content: See how to pull video titles and IDs from your database for a more interactive user experience.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Embedding YouTube Videos with Dynamic Data in Bubble.io

Let's say you're working with YouTube embed code rather than the built-in video element in Bubble and you'll quickly realize that it takes a little bit more work because your video has a set width even though my HTML element, let's take it right the way up to the edge, is near to 800 pixels across. When I take the embed code from YouTube it sets a width here and if you know that there is a set width that you want to use in your app feel free you can tinker with these values and see if you get the desired effect. But if you want it to be truly responsive we have to take another step and a quick Google search rather, came up with this website and so I can take a video URL and I can paste it in and it generates a different HTML code and I can quite take that and I can paste it in there and even in the editor it shows that it's now edge to edge.

Previewing and Adjusting the Embedded Video

I can hit preview and there we go my video now fills in the space around, it fills in the container. I just noticed I have and this can catch you out sometimes when you load in an HTML element especially if it's set to default you'll notice it contains padding and that can stop you from getting the nice edge to edge effect. There we go now it is edge to edge with the box that the video is sat in.

Working with Dynamic HTML Code

So how do I go about working with this HTML code? Well the bit that makes the video unique is the video ID which is just this part here and I can insert dynamic data in so that this can become a template for any video if I was to create a website that is beginning to look a little bit like YouTube. So I need to create a data type called video and then I'm just going to add two fields I'm going to add title and ID. Oh, auto correct in there. I'll fix that here there we go I don't want to auto correct it. Right so yeah two fields title and ID and I don't have a front-end form created so I'm going to create an example of this data type in the back end. It's a new entry I have the tiger and the video ID which is just this bit here.

Making the Page Dynamic

Okay and now at the moment this page has got nothing dynamic about it but we can make it dynamic make it act like a template page really easily. So we're going to change the content type to the data type we created video and then going to make this a little bit larger and instead of just saying videos I'm going to say current page video title and then in my container here in the HTML I'm going to set just this bit to be dynamic. So current page video ID and then if I hit preview it loads in dummy data at least for the text it doesn't have any dummy data for the video ID and that's because by hitting preview it doesn't know which one of my videos to show so Bubble just has a guess and the way of displaying your pages layout and content but without actually inserting a like a line from your database of video into the page and so you get this sample text.

Testing the Dynamic Video Page

In order to test the page you just built I'm on another page and I've just created the button and a different way to go about this if you were to build out this whole part on your website you probably set up a repeating group and you'd have to repeat and group list all of the videos in your database and then by clicking on those you'd go over to the video page but for now I've only got one video in there so I've got this button and I'm going to navigate to the video page and I now need to decide which bit of data to send across. My database has only got one video in it but Bubble will still treats it like a list because I could have more than one video in there so I'm going to do a search for videos video and this would bring up all the videos in my database but I only have one and I have to put a single item in here and because I only have one I know it's going to be the first item.

Demonstrating Dynamic Content

Now let's hit preview and then view video there you go so now this page has got two elements that are dynamic we have got the title being pulled across and we have the eye of the tiger. To further demonstrate this if I go back just another random YouTube video let's change our data so I'm changing the video ID and I'm changing the title and hit save and then there we go it's loading in the only video in my database but it is making this page which I've called embedding videos it's making it dynamic and it allows you to have greater control over how you embed videos in your page.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

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 500+ 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.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us