Hey guys,
So its taken me quite a while to get a hang of what I was trying to do with my page. I finally got everything working well. What I’m wondering, and having a problem with, is: Are there a limit to the amount of filters you can add to an on click event for a button, such as for filtering a repeater? Yesterday, I had about 6 different “.contains” filters working through my filter button and as far as I knew, it was working fine. Today as I was adding an extra one, I noticed that a lot of my data in my data collection was not appearing, despite all of my info typed in the dataset correctly, everything filled in, and the correct filters applied. I have checked and rechecked and typed and retyped. I can’t figure out why some of my data doesn’t show up. I am at a loss. I don’t know if my code would even help but this is all that it is:
import wixData from 'wix-data';
import winLocation from 'wix-location';
$w.onReady(function () {
//TODO: write your page related code here...
$w('#repeater1').onItemReady((selector, itemData, index) => {
$w('#text1').onClick(() => {
winLocation.to(itemData.url);
});
});
$w("#button1").onClick(() => {
$w("#dataset1").setFilter(wixData.filter()
.contains("type", $w("#dropdown1").value)
.contains("time", $w("#dropdown2").value)
.contains("length", $w("#radioGroup2").value)
.contains("attention", $w("#radioGroup1").value)
.contains("lgbt", $w("#dropdown3").value)
.contains("filters", $w("#dropdown4").value)
.eq("eplength", $w("#switch2").checked)
.eq("stillon", $w("#switch1").checked));
});
});