I’m trying to figure out how to set up a dropdown menu properly!
I’d like viewers to be able to select an ‘All Options’ choice, which filters all the options available. I don’t want users who post on my site to be able to choose ‘All Options’ as that would defeat the purpose of having categories/options to select etc!
I also notice that dropdowns have a blank option at the top (which seems to be ‘All Options’ but I can’t name it). Any help would be appreciated!
‘This input should not be empty’ does remove the blank option but the user has to refresh the page to get back to seeing ‘All options’! I’d like a way for users to be able to choose ‘All Options’ at the top of the dropdown!
How do I disable ‘All Options’ from being selected during posting? Users will just choose ‘All Options’ so they appear in every search rather than in specific categories!
Great @adamhholmes - sorry, how does your application know to display all the categories when selecting ‘All Categories’ on the searching dropdown? Is it workflow related?
and… how did you hide it from the creating dropdown (was it workflow or, editing the choices source)?
If you want to display all options in the repeating group just set the repeating group to display every item in your database on whatever you title that dropdown selection. That’s an easy fix. Explain more if I got it wrong.
Sorry! Yep, my repeating group is displaying all the items in my database at the moment. The dropdown menu is set up to filter the repeating group. When users post on my website, they can choose a category for their space to land in (Clubs and Bars for example).
I want the dropdown menu to list an ‘All Options’ option. I can’t add ‘All Options’ as an input for posters because, they will just choose ‘All Options’ instead of a category etc, making their content appear in every search rather than being filtered.
The dropdown menu has an ‘All Options’ option already but, it’s blank (at the top, pictured here). You’ll also see I’ve set the placeholder to ‘All Categories’ but, that’s just the placeholder and doesn’t appear on the list of options:
I either, need a way of giving the blank option the name, “All Options” or, adding All Options to the list and hiding the blank option by clicking ‘This input should not be empty’, not making it as an available option when posting content and, telling my application to display ‘All Options’ when that option is selected on the dropdown!
I had to copy and paste that expression from the design editor… (for some reason you can’t select that in the workflow editor).
Now, whether that means it’s supposed to work or not is anyone’s guess (it’s possible that it’s not, and that one day Bubble will ‘fix’ that, and it won’t work any more - although I can’t think why they would do that).
But, as you’ve seen, at least currently, it works just fine.
(and yeah, it should be possible to just define the display for the empty option in the editor in Vanilla Bubble, and people have been asking for years… but alas, it’s not. Maybe one day it will be).