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 • A quick read
A screenshot of the workflows tab in the Bubble editor showing 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 building

LATEST STORIES

An abstract visual of a rectangle with four listed items and three of them checked off, next to two icons: a green one with a checklist and a purple one with a data symbol.

How Much Does an App Builder Cost? A 2026 Pricing Guide

Learn what an app builder costs at each plan level and how to forecast your bill as your app grows, so you can pick a platform you can afford long term.

Bubble
November 06, 2026 • 12 minute read
A mockup of a mobile client portal app showing three cards of content, with two icons and a status indicator for three different items, on a blue and purple gradient background.

How to Build a Client Portal: A Complete Guide for 2026

Learn how to build a secure client portal that keeps each client’s data private, collects documents, shows invoices, and tells clients where their work stands. You’ll also see how client portal software compares with a custom build.

Bubble
November 06, 2026 • 11 minute read
A lock icon and a check icon sliding across the screen in two parallel lines

Preliminary Root Cause Analysis (RCA): October 2026 Security Incident

Our preliminary root cause analysis of the October 26, 2026 security incident: what happened, what we’ve fixed, what we’re still verifying, and what app owners should do now.

Bubble
November 06, 2026 • 5 minute read
An abstract visual of three mobile phone screen mockups, showing gallery cards, a loading screen, and conversation bubbles, on a dark blue gradient background.

A 2026 Guide to Building AI Features in Mobile Apps

Build AI features users love — personalization, chat, camera vision — then ship to iOS and Android fast.

Bubble
November 06, 2026 • 17 minute read

Preliminary Root Cause Analysis (RCA): October 2026 Security Incident

November 06, 2026 • 5 minute read

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

September 08, 2026 • 14 minute read

The Easiest Way to Build a Custom CRM With AI

September 01, 2026 • 17 minute read

What Is Bubble AI and How Does It Build Apps?

August 19, 2026 • 12 minute read

See How We Redesigned the Property Editor for Better Building

December 11, 2025 • 4 minute read

Build the next big thing with Bubble

Start building for free