(2) The data is linked to a Xano table and is only showing the initial value.
It’s also displaying the index of each list item instead of the text associated with it.
I assume this has something to to do with the API call and its output but I’m not sure what to do there.
In you’re screenshot, you’re missing a label and value fields. Basically, the label field is what will be displayed to the user in the dropdown, while the value field is the technical value the input variable will take when the user has selected a choice.
You could totally have the same variables for both labels and values.
Thanks Quentin, I’ve been through the Academy tutorials. They’ve been very helpful.
Sorry for all the hassle, but I’m still struggling somehow.
I’ve updated the object value, selected the label and value fields; however, the only thing shown in the list is the first item.
Your list of values should look more like this [ {“displayText”:”option 1”, “value”: “value”}, {“displayText”:”option 2”, “value”: “other value equivalent}, … ]
Your keys in your objects are all different. They need to be the same for this to work the way you want.
Thanks for all the help and advice.
I’m not sure why it wasn’t displaying properly for me earlier, but I finally understand what is required.
If I want to have the same value & label, then I can use one key as @Quentin pointed out; however, if I want to have a different value and label, then I need to identify a key for the label and a key for the value.