Key-value pairs as exposed state?

Strictly speaking, that is true AFAIK. However, a couple solutions have come to light in the 3+ years since this thread was started.

  • If there are a known limited number of keys, then a custom Bubble type (that’s not tied to the DB) can be defined. This results in the best Bubble developer experience. I’ve used this approach in published plug-ins.

  • If the key names or number of key/value pairs can vary, a simple “cheater” approach is to publish a list of delimited strings as an exposed state (the 2nd option described here). It makes use of the :split by operator (which wasn’t available at the time this thread was created). It’s super simple and flexible, but it’s not the most elegant approach if you plan to distribute the plugin.

2 Likes