Forum Documentation Showcase Pricing Learn more

Default choice- type problem

in a radio button or dropdown style choices, while setting a condition to change the default value: there is a problem since whatever single choice i get to in do a search for x the problem is "the default value is x but right now it is a list of x.

Read the issue message again and think about it: “the default value is x but right now it is a list of x”…

You probably want to pick first item. if the default value is of type car, but you’re setting a list of cars (result of a search), it can’t work.

Yeah, even setting up constraints to get a single thing doesn’t work since that still is a list of single thing i guess.

Okay, thanks.

It’s not about setting constraints, it’s about getting the first item of the list, to go from list of entries to entry. https://bubble.io/reference#Data.Messages.list.first_element