Walk-Through: How to Return Data from Custom Events

Learn how to send multiple types of data between workflows to build more modularly and efficiently.

Emmanuel Straschnov
January 31, 2024 • % minute read
Walk-Through: How to Return Data from Custom Events

Bubble’s on a mission to be the only no-code app-building platform with the power and flexibility of custom code — without having to write any. This is why we're especially excited to release the ability to return data from custom events.

You are building amazing things on Bubble, and this feature makes it easier for you to not only build modularly, but to also scale more effectively — because your workflows can now send multiple types of data between one another.

For example, if you’re taking payments in your app, you can create a custom “authorization” event in your payment workflows that checks whether a user’s credit card can be charged. With this new feature, you can return a yes/no value for whether the user can be charged and an optional text value for an error message if they can’t. Then you can use these values in a new workflow that either:

  1. Charges the user’s credit card if they’re authorized or 
  2. Sends the user an “error” email if the authorization fails to remind them to resolve the issue 

Here’s how it works:

With return data from custom events, you can:

  • Reduce the number of custom events in your app: Use a single event to return different values, instead of multiple custom events with slight variations
  • Build more modularly and resourcefully: Edit ‌reusable custom events in one place, rather than multiple
  • Understand your app better: View one custom event, rather than multiple custom events with slight variations

This also means reusable elements can now hold global functions — so workflows will act even more like traditional programming functions.

Read more in our manual and give it a try today.

Start building with a free account

Build your app on Bubble's Free plan. No need to upgrade until you're ready to launch your app.

Join Bubble

LATEST STORIES

blog-thumbnail

Introducing Bubble for Native Mobile Apps: A Faster, More Effective Way to Build for Mobile

We’re excited to launch native mobile app capabilities in public beta, giving everyone the ability to build, launch, and scale mobile apps without coding.

Bubble
June 09, 2025 • 9 minute read
blog-thumbnail

Mobile App Pricing: Everything You Need to Know Before October 1

Bubble's mobile app pricing is here. Learn about new plans, free beta access, and how to opt in before the October 1, 2025 deadline.

Bubble
June 09, 2025 • 4 minute read
blog-thumbnail

Replit vs. Cursor vs. Bubble: 2025 Comparison of the Top AI App Builders

Which tool is right for you? See how Cursor, Replit, and Bubble compare in terms of building an app, app design, security, integration, technical skill needed, and more.

Bubble
June 03, 2025 • 18 minute read
blog-thumbnail

Bolt vs. Cursor vs. Bubble: A 2025 Comparison of Top AI Builders

Which AI app builder is right for you? See how Cursor, Bolt, and Bubble approach app development, design, AI support, coding, and more to find the right one for your skill level and project needs.

Bubble
June 03, 2025 • 18 minute read

What Can You Build on Bubble? 25 Examples to Inspire You

November 18, 2024 • 19 minute read

The Future of Bubble’s Editor: Introducing the New Workflow Tab

October 11, 2024 • 3 minute read

Efficient App Building 101: Improving Your Workload Usage

July 01, 2024 • 3 minute read

How to Craft Effective Prompts for Bubble’s New AI Page Designer

June 17, 2024 • 4 minute read

Build the next big thing with Bubble

Start building for free