Hi Gurus,
I have an issue with my code. I have a repeater that fetches data from my database. Furthermore, I have three dropdown menus that communicate with each other. The first dropdown menu is set on by default. The second dropdown will only be available if the person has chosen a value from the first one. And so on with the third option. HOWEVER
I have created a reset button that should give the person the possibility to start from the beginning with the dropdown 2&3 beeing deactivated again. However it does everything but deactivate dropdown2&3
Here is my code for the button:
export function clearFIlters_onClick(event) {
$w(“#dropdown1”).value = 0;
$w(“#dropdown2”).value = 0;
$w(“#dataset1”).setFilter(wixData.filter())
.then(() => {//<< You need this “then”
$w(“#iTitle”).value = “”; omitDuplicates();
})
}
I really appreciate your help Chiefs!
Thanks in advance