w("#Dropdown").options doesn't display labels

My apologies and thanks in advance - there must be something small wrong, but I couldn’t find the error since days. I’m using a dropdown menu that links to pages. Everything works fine, -but- the dropdown fields remain blank/white (even if they direct me to the correct page).
a) I deleted all dropdown options the dropdown came with to avoid any problems
b) I then gave this “vanilla button” the code below.

$w.onReady(function () { 
$w("#userProfileDropdown").options = [
{ "Label": "Open", "value": "userprofiledata/{ID}" },
{ "Label": "Edit", "value": "edit-user-profile" }, ];
}); 

export function userProfileDropdown_change(event){
let page = event.target.value;
let path = "/" + page; 
wixLocation.to(path);
}

I also changed the dropdown button to a standardized layout…also tried to change background to grey. Still, couldn’t spot any text.

Sorry, I know I’ve been recently taking more from that community than giving. That’ll definitely change the more I improve.

Kind regards,
Constantin

Hi Constantin,

Sometimes, it just takes another pair of eyes … The reason nothing is showing in the dropdown is that you have the word “Label” capitalized. It should be lower case.

I take it that you want to make the user profile ID the value. As written, that is a literal string and not a variable. You will need to write some code to to assign that.

@tony-brunsman : Thank you a million times!