Dropdown to Query Database

I have a similar problem to Jess with a double filtered dropdown (the code below). My issue is that the dropdowns are showing what is in the database but it is not running the filter to take out the dropdown options that don’t apply…

$w.onReady( function () {
});
//from gender
export function gender2_change(event, $w) {
$w(“#SAsport”).enable();
sportFilter()();
//the code for this event is here:
}
function sportFilter (){
$w(“#indexsport”).setFilter( wixData.filter()
.eq(“gender”, $w(“#gender2”).value)
);
}

//from sport selection
export function SAsport_onchange(event, $w) {
$w(“#SApositionbysport”).enable();
positionFilter()();
}
function positionFilter (){
$w(“indexpositions”).setFilter( wixData.filter()
.eq(“sport_name”, $w(“#SAsport”).value)
);
}