How to Pass Data and Values to Reusable Elements in Bubble.io
Passing data to reusable elements in Bubble.io is essential for creating dynamic, efficient no code applications. There are several methods to transfer data and values to reusable elements, each suited for different scenarios and complexity levels.
Data Source Method for Basic Data Passing
The most straightforward way to pass data to a reusable element is through the data source property. When you place a reusable element on your page, you can set its data source to provide the necessary information.
For example, if you have a product card reusable element inside a repeating group, you would set the data source to current cell's product. This automatically passes the current product's data to the reusable element, allowing all text elements, images, and other components within the element to reference this data.
This method works perfectly when your reusable element has a specific content type defined, such as Product, User, or Order. The reusable element inherits the data structure and can access all fields from the parent data type.
Custom Properties and Parameters
For more complex data passing scenarios, Bubble.io allows you to create custom properties within your reusable elements. These properties act as parameters that can receive different types of data from the parent page or element.
To create custom properties, navigate to your reusable element editor and define properties with specific data types such as text, number, date, or even custom data types from your database. These properties become available when you place the reusable element on any page, allowing you to pass specific values that aren't tied to the main data source.
Custom properties are particularly useful when you need to pass configuration data, labels, or additional context that isn't part of the main data object. For instance, you might pass a button label, color scheme, or display mode to customize how the reusable element appears in different contexts.
Custom Events for Advanced Data Transfer
Custom events provide a powerful method for passing data between pages and reusable elements. When you create a custom event within a reusable element, you can define parameters that accept data from workflows triggered outside the element.
This approach is particularly valuable when you need to perform actions within a reusable element that depend on data from the parent page. For example, you might have a dropdown menu in a header reusable element that needs to be controlled by buttons on different pages throughout your no code app.
Custom events with parameters allow you to create reusable functionality that can be triggered from multiple locations while maintaining clean, organized code. The workflow that triggers the custom event can pass specific values as parameters, making the reusable element highly flexible and dynamic.
Return Data from Custom Events
A recent addition to Bubble.io's functionality is the ability to return data from custom events. This feature transforms reusable elements into function-like components that can process input data and return calculated results.
When you create a custom event within a reusable element, you can now define return values with specific data types. This allows you to perform complex calculations, data manipulations, or API calls within the reusable element and return the results to the parent workflow.
This approach is excellent for creating reusable business logic, calculations, or data processing functions that can be deployed across multiple pages in your Bubble.io application. It promotes code reusability and maintains consistency in complex operations.
Best Practices for Data Transfer
When implementing data transfer to reusable elements, consider the performance implications of your chosen method. Data source methods are generally the most efficient for simple data display, while custom events should be used for more complex interactions.
Always ensure that your reusable elements are designed with flexibility in mind. Use custom properties for configuration options and custom events for actions that need to be triggered from outside the element. This approach creates truly reusable components that can be easily deployed across your no code application.
Remember that reusable elements with well-defined data interfaces are easier to maintain and debug. Clear naming conventions for custom properties and events will help you and your team understand how data flows through your Bubble.io application.
Learn more with Bubble tutorials

Master Dynamic Data in Bubble.io to Enhance Your Apps

Demo of Return Data from Custom Events

How to use a reusable element and why you should
Hi, I'm Matt 👋
My Journey
- Discovered Bubble.io in 2017 while working as a WordPress web designer.
- Transitioned into a full-time Bubble coach and tutor with over 7 years of experience.
Achievements
- Helped hundreds of students turn their app ideas into reality.
- Over 37,000 YouTube subscribers and 1,200,000+ views on tutorial videos.
Why Learn from me
- Real-World Experience: Built internal tools, side projects, and collaborated with entrepreneurs using Bubble.io.
- Proven Success: Students have launched successful apps, some even selling their creations.
- Passionate Educator: Committed to your success and eager to share hard-won insights and strategies.

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.
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
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.
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.
Forever. With our lifetime membership, you get unlimited access to all videos, our growing course library, and the AI No-Code Coach. Pay once, and it’s yours for life. No subscriptions, no ongoing fees.
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!
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.
Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.
Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.
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 mentorship to fast-track your progress
- Marketing strategies tailored for no-code founders
- Product management insights to scale your startup
- Personalized support from experienced founders