I seek to filter cell phone models with the specifications that the user wants, and that I achieve with Corvid.
import wixData from ‘wix-data’ ;
$w.onReady( function () {
//TODO: write your page related code here…
});
export function filter_click(event) {
$w( “#dataset1” ).setFilter(wixData.filter()
.contains( “cellPhoneBrand” , $w( “#dropdown11” ).value)
.contains( “price” , $w( “#dropdown1” ).value)
.eq( “operatingSystem” , $w( “#dropdown3” ).value)
.eq( “capacity” , $w( “#dropdown14” ).value))
}
If all my options are “Contain”, it filters my dataset perfectly; the problem comes with the “eq”. If I decide that the dropdown values equal (eq) to the values of my data set, it no longer filters; once I limit the filtering to containing the dropdown values it works again.