[SOLVED] Dropdown Options Stopped Working

having a really weird issue with dropdown inputs on my site. I can no longer set the options with code. I could very well be overlooking something so i just copied the example straight from the API References.

$w.onReady( function () {
$w(“#dropdown1”).options = [
{“label”: “Who’s on first!”, “value”: 1},
{“label”: “What’s on second”, “value”: 2},
{“label”: “I Don’t Know is on third”, “value”: 3}
];
});

and yet It is still not showing up. I’m 99% sure this is user error but I can’t for the life of me figure out what i’m doing wrong. None of the options show up. Here is a link to the live page: https://www.evaultcompany.com/thankyou

…what a difference a cup of coffee makes. The values need to be strings (i.e. “1” not 1). Works great now, but maybe someone should change the example on the API References page.

It depends on the field in the collection - it it’s number or string . If you’re creating a filter on a number field in a collection, but the dropdown value is a string - then you’ll have a problem.