Good question, it is a dataset called topics. I understand the confusion. I am simplifying my example by relabeling the elements in the description and code below. Thanks for looking at this @tony-brunsman . I have tried wix-storage (memory and session) to hold the data but since I can print the correct data (dropdown1.value) in console.log I think it is less of an issue of capturing the value than it is of placing it in the dropdown2.value. Is there anything I am conceptually missing about populating the value of a dropdown? Does that retrieved value have to match one of the target dropdown options? Will it not work if the retrieved or target dropdown choices come from a list? Dropdown2 does get its list from the dataset that Dropdown 1 populates from. It is kind of like I need dropdown2 filtered by dropdown 1 (but only if a new record is needed…) Maybe when the New Topic (record) button is pushed I need to get the index of the dropdown 1 option that was chosen and set that index in dropdown1 instead of getting the value? Thank you for any help you can offer. I am willing to read and research but I don’t even know what concepts to search next.
#dropdown_populated_by_another_dropdown_index #set_dropdown_value
export function Button_click ( event ) {
let newDate = String ( $w ( ‘#dropdown1’ ). value
$w ( ‘#dataset’ ). add ();
$w ( ‘#dropdown2’ ). placeholder = newDate ; //placeholder works fine
$w ( ‘#dropdown2’ ). value = newDate ; //value doesn’t work
}
