[New Feature] Option sets

The data is stored as text in the database. When you export or import, it will be based off the display value for your options. So, in your case, it would be “Active” and “Inactive”

3 Likes

There is no limit in place for number of options at this moment, although the interface isn’t really designed for hundreds of them (it can still work, will just be a long list).

3 Likes

Then I’d like to request two improvements.

  1. Install option with CSV
  2. Change in interface.

ice_screenshot_20191220-211232

Thank you again!

3 Likes

Will be a game changer to deal with dropdowns on multilingual websites!
Thanks a lot.

2 Likes

Is there a demo environment where we can check the examples?

1 Like

Our prayers have been heard @Kfawcett, @jamesbond, @keith, @JonL :heart:

THAAAANK YOOOOUUOUOUUUO!

9 Likes

@zelus_pudding, I had forgotten about that thread, but yeah, this feature can be used in a lot of great ways. (Like Faye’s desire for custom colors.)

1 Like

Great feature! Keep up the good work!

1 Like

This is a truly great new feature. But I always wonder, has the Bubble team thoroughly tested all of the upside down and backwards way their users will use something like this? A teeny tiny understanding of data design goes a loooong way …

2 Likes

I am glad they implemented your suggestion. Hope it makes it easier for you guys to develop better apps!

Cheers

1 Like

Excellent!

“The reward for good work is more work.” I love how a great feature like this immediately gets the community asking for further improvements.


Hold on… can I use this for colors?

:running_man: [runs to try it out on the editor]


[edit] … and an option can have an attribute that refers to another option set. :clap:

2 Likes

Great feature ! Thanks

@cal one question: when you deploy to production the options are transferred with the new version or you should populate data as it happens with custom types ?

So I am trying to understand this new option. It seems like it could streamline some things for me.

I have tournament brackets in my site. I want o run tournaments with up to 64 (maybe 128) teams. My issue is that I need to create a lot of Fields for each tournament. As an example in a 32 bracket double elimination:

  1. 63 total games

  2. Each game has (Player 1, Player 2, Player 1 Race, Player 2 Race, Player 1 Result, Player 2 Result, Table #, Stream (Y/N))

  3. Winner (moves to new spot in bracket)

  4. Loser (moves to new spot in bracket if 0 losses)

I am sure there i more I am leaving out.

So my question does this new Option Set give me the ability to simplify my Data structure in anyway or do I just need to build massive Data Types with tons of Fields for the larger brackets?

Thanks

The options are transferred with the new version.

I wonder if I am missing something? So what is the difference between this and doing what I guess we are already doing which is creating these options in a DB table and then doing a search for?

  • I guess it gets pushed to live automatically so that saves having to push it from test to live (or forgetting to)

Is this a quicker lookup rather than a search for? My guess is not as this is still sat in the DB somewhere?

1 Like

These options are downloaded to the browser on page load and are always immediate. They aren’t searched from the database. Which is why they say you shouldn’t put anything private in those options, as there is no way to keep this information private.

I’m my app this works well. I have buttons which are dynamic and needed to be searched in the DB each time the page was loaded. Now there will be no DB search to generate these buttons. This will speed up my app considerably.

This can keep other things like days of the week, cities, categories, and such.

5 Likes

Thanks Troy that makes sense - speed - we like speed

1 Like

Hi @cal Thank you, but I’d really love if Bubble was faster when our apps search for private & secure data, as opposed to a new un-secure option. On the other hand, I’m sure we can all appreciate something new that can possibly help people get better performance and speed from Bubble.

There’s a little bug when creating them. I’ve already reported it.

option-sets-bug

See this thread for more reasons Option Sets are awesome.

1 Like