Hi there, you can NOT directly assign a value to a dropdown.
Can’t do this: $w ( ‘#dropdown2’ ). value = newDate ;
If you want to change the items in a dropdown, you have to reload all the items for the dropdown as well as your change.
The dropdown items are stored in the options array.
The array contains key-value pairs (label, value), which define each row of your dropdown.
What I don’t understand, is the second dropdown only going to contain 1 value from the first dropdown? If so, why do we need the second dropdown?, since it will only contain 1 item.
When I need to deal with getting the value from a dropdown, I wait for the user to make a dropdown selection. I use the .change(event) of the dropdown. So when the user selects an item in a dropdown, the event fires. Then I get the value from the dropdown and take an action.
See Wix Velo docs: https://www.wix.com/velo/reference/$w/dropdown/options