I am working with a large collection and I would like to retrieve only items with an image field not empty. Here is my code.
if ( $w ( ‘#checkbox1’ ). checked &&! $w ( ‘#checkbox2’ ). checked ){
$w ( "#dataset1" ). setFilter ( wixData . filter ()
. eq ( “fabricPattern” , “Solid” )
. and (
wixData . filter ()
. eq ( “image” , ! null )
)
)
}
There could be an error in the way I am writing the checkbox condition too. Any help will be appreciated.