Conditionally Setting Static Choices for a Dropdown

Hello there Bubblers…

Do you know if I can conditionally set the static choices for a dropdown? There doesn’t seem to be an option to do that in the conditional area of the element. An action would be okay to use, but I can’t see one of those either…

Thanks!
Antony.

I think I have had that problem before, maybe bubble can add that option. My work around was adding another dropdown on top of it and then toggling it on or off with a custom state. That should work as a clunky workaround. Hope that helps.

Example:
Preview: https://805dropdownexample.bubbleapps.io/version-test?debug_mode=true
Editor: https://bubble.io/page?name=index&id=805dropdownexample&tab=tabs-1

Hi there Jason… thanks for sharing your experience. Yes, it would certainly be a good enhancement to the product. I have 8 different versions of the choices to change, and I’m not keen to have 8 of them stacked on top of each other… at least not until I have the layout nailed! I’m working on a different approach to solve the user interface dilemma… A Happy New Year to you! :slight_smile:

Hey @antony,

With 8 set of choices, you might consider storing the choices in the database and just selecting the choices you want based on the condition since you can dynamically change the source for dynamic dropdown’s. Just create a new data type that can hold all the possible options as text, and include a field (or more than one) that can be used to filter the results. Then just have a dynamic dropdown with data type of text, and do a search. This way you can have one element, and just change the source as needed.

EDIT: Just saw your other post, so clearly you already know about this option! I think it is the only way for now.



Looking to improve your Bubble™ skills?

Let me turn
:thinking: :tired_face: :confounded:

into
:grinning: :sunglasses: :woman_student:

Coaching and Development at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

1 Like

Hey Ken, thanks for the input - am just setting it all up now, let’s see how it goes!

This topic was automatically closed after 70 days. New replies are no longer allowed.