in my case, I want to show specific data from the dataset that was filtered by slug on the dynamic page.
I try to filter the slug with filters (like contains, and eq), but there’s always return error validation
here is the code:
let pathDetail = wixLocation.path[1];
$w("#dataset1").setFilter( wixData.filter().eq('slug', pathDetail))
.then(() => console.log("data filtered"))
.catch((err) => console.log(err))
here are all the error messages:
- eq :
2. contains :
I will be very happy if someone would help me.
notes:
when I’m trying to filter the dataset with other propertyName, it works properly: (propertyName: ‘title’)