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.
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!
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.
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.
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.
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!