Non-FictionStartup GuideNo-Code Build

Bubble Option Sets Guide eBook

Use Bubble option sets for static data. Dropdown c

by Zarate Charlena

  • English
  • 137 pages
  • 2026
  • SamEnrico

Use Bubble option sets for static data. Dropdown choices and configuration values.

Formats

Free sample

Chapter 1: The $47,000 Mistake--–- Sarah had 47 users and a $847 Bubble bill. Her crime? A country dropdown.She built her Saa S MVP the way most beginners do – quickly, logically, and wrong. When she needed a list of countries for her shipping address form, she created a new Data Type called "Country" and typed in 195 records by hand. It took her an afternoon.

It felt professional. It felt like real software development.Three weeks after launch, her usage dashboard told a horror story. Every time any user loaded any page with that country dropdown, Bubble queried the database. 47 users × 10 page loads per day × 195 countries = 91,650 unnecessary database calls daily. Her Workload Units (WU) were bleeding out like a burst pipe.

The $847 bill wasn't even the worst part – the app was slow. Users waited two to three seconds just to see a dropdown populate.What Sarah didn't know was that Bubble had a feature designed exactly for her problem. A feature that would have reduced her database calls to zero for that dropdown. A feature that would have made that list load instantly from local cache. A feature that she had scrolled past dozens of times in the Data tab, dismissing it as unimportant.That feature is the Option Set.

This book is the confession, the autopsy, and the redemption arc for every developer who has made Sarah's mistake – and for everyone who wants to avoid it entirely.The Three Ways to Build a Dropdown (And Why Two of Them Are Wrong)Before we can understand Option Sets, we need to understand the problem they solve. In Bubble, when you need to present a user with a list of choices – countries, order statuses, product sizes, user roles – you have exactly three architectural options. Two of them will eventually hurt you. One of them is the subject of this book.Option 1: Hardcoded Text (The "Magic String" Trap)The most tempting path for beginners is also the most dangerous. In Bubble's dropdown element, there is a field called "Choices" where you can manually type a list of options separated by commas: "Yes, No, Maybe" or "Pending, Approved, Rejected, Archived."At first glance, this seems perfect.

It took five seconds. No database setup. No configuration. The dropdown works immediately.The nightmare reveals itself three months later when your product manager decides that "Pending" should be renamed to "Awaiting Review." Now you have to find every single dropdown, every single conditional statement, and every single email template that references "Pending" and change them manually. In a modestly sized app with 50 pages and 200 workflows, this is a full day of tedious, error-prone work.Even worse, if you miss one instance – maybe a forgotten filter on a reports page – your app now has inconsistent state.

One part of your system thinks an order is "Pending." Another part calls it "Awaiting Review." Your database stores it as "Pending" (because you didn't change that either). This is what software engineers call "magic strings" – literal text values that have no single source of truth. They appear throughout your codebase, and changing them is a scavenger hunt where the prize is a production bug.Hardcoded dropdowns are fine for prototypes, throwaway demos, and anything that will never need to change. For real applications, they are a maintenance debt you will pay with interest.Option 2: Database Data Type (The Performance Sink)The second approach feels more sophisticated. You create a new Data Type – let's call it "Country" – and you add 195 records manually or via an API.

Then you create a dropdown whose data source is "Do a search for Countries" and display the name field.Sarah chose this path. And from a maintenance perspective, it's actually good. You can change "United States" to "USA" in one place, and every dropdown updates automatically. Your product manager can add "European Union" as a new option without a developer. That's real flexibility.The problem is the cost – not just in dollars, but in speed.Every time a user loads a page with that dropdown, Bubble executes a database query.

Even if the countries never change. Even if the user has loaded the same dropdown ten times today. Even if there are a thousand users all requesting the same list simultaneously. Each request hits the database, consumes Workload Units, and waits for a server round-trip.For a list of 195 countries, the delay might be 200-500 milliseconds. That's barely noticeable.

But those milliseconds add up. Sarah's 91,650 daily database calls cost her $847 in a single month. And the delay, while small per request, created a cumulative sluggishness that made her app feel cheap.The database approach is correct when your list needs to change frequently or be editable by users. It is catastrophically wrong for lists that are essentially permanent – countries, US states, order status types, yes/no options, priority levels, and most configuration values.Option 3: Option Set (The Zero-Cost Solution)The third option is the one Sarah missed. Option Sets are Bubble's feature for static data – information that is part of your app's source code, not stored in the live database.

They combine the maintainability of the database approach (change once, update everywhere) with the performance of hardcoded text (zero database calls, instant loading).An Option Set is created in the Data tab, right next to Data Types, but it behaves completely differently. When you build your app, Option Sets are compiled into the Java Script bundle that gets sent to every user's browser. They are cached locally on the user's device after the first page load. Subsequent requests for that list – across any page, any workflow, any condition – read from the cache. Zero server round-trips.

Zero Workload Units. Instant response times.Sarah's $847 mistake was avoidable. A country Option Set would have cost her nothing in database calls. Her 47 users would have seen the dropdown appear instantly. And she would have launched her MVP with one fewer scaling headache.The Static vs.

Dynamic Spectrum To understand when to use Option Sets, you need a mental model for where your data lives on the static-to-dynamic spectrum.Pure Static Data (Option Set Territory)This category includes information that changes rarely (less than once per month) and never by end users. Examples: Country lists, US states, order status enums (Pending, Shipped, Delivered), product sizes (S, M, L, XL), user roles (Admin, Editor, Viewer), priority levels (Low, Medium, High), yes/no/na options, and configuration constants (tax rates, file upload limits, trial durations).This data has three characteristics: it is known at development time, it changes only when you deploy the app, and every user sees the same values. Option Sets are perfect here.Mixed Static/Dynamic (The Gray Zone)Some data starts as static but needs occasional user input. For example, a list of product categories that an admin can add to via a dashboard. You have two choices: store categories as a Data Type (flexible but costly) or store them as an Option Set with a "soft-delete" pattern (see Chapter 9) and redeploy when new categories are added.

The right answer depends on how often categories change. If it's once a quarter, Option Sets are fine. If it's daily, use a Data Type.Purely Dynamic (Data Type Territory)This category includes user-generated content, transaction…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Use Bubble option sets for static data. Dropdown choices and configuration values.

Details

Author
Zarate Charlena
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Startup Guide, No-Code Build
Released
2026-05-30
Pages (approx.)
137
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Zarate Charlena

See all

You may also like

See all