Hello everyone,

We just pushed an update to option sets. This update gives a couple of new features:

  • Lists of option sets can now be sorted by an attribute, or ranked by numerical similarity to another option
  • Things can be grouped by option sets now
  • Option sets correctly get parsed when passed around as URL parameters
  • You can search for uses of an option in the App Search tool (thanks @_Scott for the suggestion)

Let me know of any feedback you have!

36 Likes

Awesome!

How do you grouped by option sets?

1 Like

Wonderful! Just this past week I started using Option Sets for the first time even though I’ve been working on my app for many months, but then quickly had to create a duplicate field for the “text” value because I needed to perform a grouping. Was pretty bummed at the time but now I’m elated! The Bubble team keeps on giving and giving. I love it.

1 Like

Hi Brian,

Reading your note I’m wondering if I’m having the same issue that you’ve already solved? I started using Option Sets yesterday so that I could display a list of categories in a repeating group on separate lines. But I am struggling to add constraints in order to only display categories relevant to a profile (a different ‘thing’). I keep getting a text error.

Does this sound remotely similar to the challenge you’ve had, and did you manage to sort it?

Many thank in advance

Sonya

Sonya:

Hard to say without knowing your constraints, but since you’re displaying them in a repeating group couldn’t you do a “:minus item” or “:plus item” or “:items until #” or “:items from #” or “:filtered” ?

For example, I only needed to display a few options for this one repeating group:

Screen Shot 2020-04-29 at 10.42.38 AM

Is your repeating group inside of a parent group that’s been set to a profile as its type of content?

@cal Thanks for the improvement on Option Sets. Much needed.

One thing I think you guys have missed is that the deleted option sets don’t show up on “Optimize application”, so you won’t be able to clean up the app from deleted option sets. I like to keep my apps clean so won’t slow the editor.

:+1:

You can search…

:hugs: :partying_face:

… for uses of an option in the App Search tool

:unamused:

It’s useful, but I was hoping I could do some searching in Actions.

boa noite Cal,
estou tentando criar um app de bingo( sorteios) você pode me ajudar?

Hi Brian,

Thanks for getting back to me.

I’ll have a look at “:minus item” and other operators you’ve mentioned, see if any of those work.

The repeating group is inside a group that is set to OptionsCategories, because if I set it to profilings it kicks an error.

Thank you!

Sonya

You guys are amazing!!!

Just like BrianHenderson, I was having to generate workflows that created text value equivalents in my database just to sort things.

I am so so so happy about this update! (although now I will have to undo the ratsnest of a hacky-workaround I developed, haha)

New to Bubble. Trying to grasp the concept of Options Sets and when to properly use them. Does it make more sense to, say if am creating a publishing workflow, to create it as an Option Set that may have different publishing statuses like, Draft, In Review, Rejected, Published, and bind it to custom data types (i.e articles, directory, events)? Since this workflow, of Draft to Publish, is something users don’t need to add/modify, then this is the best use case for Options Sets?

Wondering how others are/will leverage Option Sets with Bubble.

Sorry, we have encountered an unexpected error. Please file a bug report (Help -> Report a bug), including error code 1588295134930x440696310116063500 and a step-by-step explanation of how to reproduce this issue.

I really like the option sets, it makes it very easy for drop downs and the like. One challenge, existing data fields may be better suited for options sets. It would be great if an existing field type could be updated to an option set.

2 Likes

For a status I just use text.

Option sets in my app are used for a lot of stuff as I’ve gotten more familiar with them and the mystery has worn off for the most part.

The majority of my uses are for displaying quickly values used in search filters, as a side menu opens on page load, where in the past I had to use a data type and search for it, but now I use an option set, the load speed is noticeable and the filter choices are on page immediately.

Something that seems to also help when using option sets on a data type as a data field, the information seems to save faster when a user is adding to the D.B. For example, a user adding a job listing and selecting from option sets for things like salary range, years experience required, job category etc., not only are those options loading nearly instantly in my custom drop downs, but the time it takes to save to the D.B. seems to be much quicker, to the point I don’t see a blue progress bar at all.

Something else I like about option sets is when setting up the filters on search results or in conditionals, is that I don’t need to type in any specific text value into the constraints. For example, sorting by options like date, distance, price could be loaded into option sets, then when a user clicks from the drop down their sort by choice, the filter constraints can use the ‘options is’ function and then select from all option choices, instead of having to type in a text value.

They are handy…I suppose from my last example, you could definitely use them for publishing a status, especially if the statuses are app wide and don’t change per data type.

1 Like

Really helpful, Thank you!

Is it possible to have Internationalization support on option sets?

1 Like

So, could we say that option sets are highly recommended for any data that is fixed at the beginning of the developpement ? Like some variable.

And data types should be reserved for any kind of data which will increase in volume while the app is used ?

I’m asking as I’m just starting my first app here.

Thank you.

Michel

Yes I would say so. They are increasingly more versatile and therefore useful as you can save them to a datatype as a data filed, however you can’t sort by them when used as a data field.

I guess you mean increase in volume by way of users interacting with the site and creating data then yes for sure as you have to since I am not aware of users being able to create options at the moment.

Good luck on your project.

At first I struggled to see the need for option sets. Now the more the use them, the more I can’t live without them! Thanks team!

1 Like