Thank you for your reply Bruno.
I have a repeater with multiple checkboxGroups (the repeated items on the left side of the image) that I’m using to filter the ‘products dataset’ displayed on the right side of the image. I would like to target only few of them (i.e. Brand, Price) with JS, but at the moment I have to loop through the entire repeater because they all share the same ID.
Also I have another question:
At the moment i’m filtering the products dataset with the following code:
filter = WixData.filter();
filter = filter. hasSome (‘brand’, value)
.or(filter. hasSome (‘store’, value))
.or(filter. hasSome (‘type’, value))
.or(filter. hasSome (‘connection’, value))
.or(filter. hasSome (‘microphone’, value));
.or(filter. between (‘price’, minNumber, maxNumber));
$w(dataset).setFilter(filter);
It worked fine until i’ve added the highlighted part. It appears that chaining different . hasSome() with a .or() conditions allow to filter the dataset correctly, however once i’ve added a .between() the filter gets overwritten by the last condition.
As a result I can only filter using price range and all the other filters get ignored.
Could you help me with this please?
