I am trying to make a screen where someone can update an order if they need to. The order has already been placed and I am trying to repopulate it as the default value in the dropdown. Repopulating past data as default for text inputs is working for me - I am just having this issue with dropdowns. Using xano as backend. Please help.
Hi, looks like the restore field from Xano is an enum. Make sure that the API call give you in result the exact text of your static choices (it’s case sensitive too). And not an id of the enum option.
I have had it as both enum and text. I figured out I am doing it correctly for Bubbles native dropdown. The issue is happening when I am using the multiselect plug in dropdown. Any other advice?
Here is a screenshot of the plugin I am using. However I actually dont need a multi select dropdown. I was only using this because Bubble’s native dropdown only allowed so much text space (i have a big dropdown list)
Should give my dropdown plugin a try! Free!
Ok, I think the issue come from the ", " in your options value. When you try to populate the default value with “abc, def” the multiselect will consider that you want to submit 2 items: “abc” and “def”.
I didn’t find yet how to enter as default value an option containing comma.
But there is a workaround. Create an option set with the list of options and use dynamic instead of static choices. Then call the right option in the default value calling all [option set]:filtered.
See example:
Or just use another separator in your options names
Hi, I tried removing commas from my answer choices and that did not solve the problem. Any other advice?