I'm filtering a dataset based on a user input and a boolean value. When I just filter by the user input (.contains("txtAddresses", title)), it works fine, but when I add the filter for the boolean (.eq("addCustomer", false)) it breaks and the repeater doesn't show anything. I'm really confused and don't know why it does this. Any help would be greatly appreciated!
It's on the Addresses (Addresses) dynamic page.
Hi,
Use onReady() function in order to permanently set a filter in your dataset.
$w("#normDataset").onReady(() => { $w("#normDataset").setFilter(wixData.filter().eq('addCustomer', false)); });
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
Best,
Sapir
Hi,
I add a button event handler that filter the dataset according to 'addCustomer' and its seems to be working,
Can you explain how did you try to implement the filter?
Best,
Sapir