I need to add "Or"dataset filter from values of multi-select checkbox, field type to compare in the collection is text. Filter is something like
filter = filter1 && (filter 2 || filter 3 || fiter4 ) && filter 5 …
supposing 3 options are checked, so (filter 2 || filter 3 || fiter4) should come from multi select check box.
if ($w( “#findChkAge” ).selectedIndices.length !== 0 ) {
for ( var i = 0 ; i < $w( “#findChkAge” ).selectedIndices.length; i++) {
filter = filter.eq( ‘agerange’ , $w( ‘#findChkAge’ ).value[i]); ------------- I’m lost here ------------------
}
}
Any help is appreciated.