Hi ar,
try to use this code:
import wixData from 'wix-data' $w.onReady(function () { //TODO: write your page related code here... });
export function radioGroup1_click(event) { //Add your code for this event here: $w("#dataset1").setFilter(wixData.filter() .contains("Jewelry",$w("#radioGroup1").value))
.then(()=>{
//when the code gets here your datafilter finished filtering the table
})
$w("#anchor2").scrollTo(); //page should scroll immediately to anchor2
}
If the dataset isn’t filtering the table try to check if the values of “Jewelry” and
$w(“#radioGroup1”).value) are correct, pay attention to the item field key in the database, maybe you should use “jewelry” instead of “Jewelry”
Gal.