When dropdown’s value is changed > add action where value will be saved and add a condition “only when this dropdown’s value is Volvo”… field = 1
Thanks Gaby… this solution makes sense, but it seems to be a bit convoluted given the relatively simple objective. I do really appreciate your help though! Thanks.
No problem. If you find more straight-forward way, then I hope you’ll post here so that others may learn! A lot of these things also really depend on what you’re doing. If your value doesn’t exist in the database, then you’ll end up “hard coding” with some variation of my first suggestion anyway.
Here’s another path for if the value you’re looking for does exist in your DB:
If your dropdown is a dynamic list of Things, and the value that you want to save versus the caption of each choice are separate fields within the Thing data type, then you can simply say field = This dropdown’s value’s [value field].
For example your dropdown is a list of cars in your database, and you want to save the selection’s horsepower.
Source = search for cars
Caption = “current option’s model name”
When dropdown’s value is changed > field = this dropdown value’s horsepower.
There are usually many ways to achieve the same thing in Bubble, with some ways more more efficient than others. All really depends on what you’re doing. Hope this helps!
mishav, thank you - that is very cool. Let’s say I have 3 numbers that represent date parts (for month, day, and year), for example: 04,25,2017… can you please help me with the expression to join these into a date formatted string that the database will accept as a date?
From your perspective, what is the best practice approach to collect dates (specifically birth dates)? The date picker in bubble is not good for picking birth dates and the date formatted text input field in bubble is not very user friendly on mobile. Thanks again.
Well, the year dropdown only displays 10 years and many people are older than that. So, there is a lot of clicking or manual manipulation to navigate to a specific year. Also, on mobile, it’s not a great experience, as the dates on the calendar are very small.
Thanks mishav, that picker is much more usable… how would I go about installing the Javascript for that calendar please?
Also, I noticed on the “Expression Numbers to date” element you created, the month it’s displaying is one more than the input month (for instance input of 4 renders May). I can’t figure out why that is happening.