I need to populate a dropdown with an array that doesn’t contain the key label.
let fruits = [
{ "color": "red", "fruit": "apple"},
{ "color": "yellow", "fruit": "banana"},
{ "color": "green", "fruit": "lemon"},
};
$w.onReady(function () {
$w("#dropdown").options = fruits;
});
//I want to show the fruit key in the DropDown