Dropdown having option to show Default extra option

Hello. Can i please ask for help?
I have a dropdown that shows Documents categories. Categories is Data type with thing for every category.
How i can add extra choice that is always first and says “Show all documents”? Currently first option is blank and it’s not obvious.

Thank you for the help

This is easily accomplished by adding an item to your list.

Search for or Get an Option > plus item

You can then refer to that selected item once selected as normal.

1 Like

But in this case it’s gonna be last option in dropdown. How to add first item?

Thank you for the help!

Sort! Add a sort field :slight_smile:

1 Like

But when i adding item in expression it will add last item, not first one.

Yes, but if you add a sort field to your items, then when you have all your items in your list that you want, add the :sorted by operator at the end. Then sort with your sort field. That should do the trick!

1 Like

plus item operator adds last field without sorting field. So how to add plus item first? Thank you.

Honestly… I don’t think Bubble default dropdown can handle this scenario well. Ideally, you can achieve this by making everything raw text. The problem with this is that you will not be able to dynamically grab an ID upon selection like normal. You’d have to add another filter/action that can take that selected field and do something based on conditions.

Want to try my Droppy plugin?

Every part of your dropdown is customizable (the menu otherwise can only be modified with CSS, but my code makes it effortless). I’ll be adding more customization on the menu part later.

1 Like

you can add a property to the document called “index” or something, make it 0 for the default option and 1 by default for all other documents in the list. Sort list by index, it will always by first.

1 Like

Yes, that was one of the methods I was trying to explain. I haven’t needed to really use the dropdown on Bubble as of lately, so my wording/course of action may be a little off, and for that, I apologize.

Curious if this method works out for you @ForeverLive!