Hi,
I have searched quite a bit for a solution to this but I must stress that until about 2 days ago I have never worked with any kind of computer code language at all. So this is a big learning curve for me.
Anyway…
I am trying to implement a simple filter for a set of drop down menus. I found a tutorial online which had some code to copy/paste. I have been over the code again and again and everything looks to be set up ok. But one line of code shows an error ‘wixData is not defined’.
The tutorial I used was from… https://codequeen.wixsite.com/dropdown and the code is found via a link at the bottom of the page. There is a youtube video for this same tutorial that I followed.
It is the code in blue and bold below that seems to be the problem.
Many thanks.
$w.onReady( function () {
});
export function vehiclemakedropdown_change_1(event, $w) {
vehiclemodelfilter()();
}
function vehiclemodelfilter (){
$w(“#Vehiclemodels”).setFilter( wixData .filter()
.eq(“vehicleMakes”, $w(“#vehiclemakedropdown”).value)
);
}