Hi, I need to add a filter - buttons of my dataset. There are 12 buttons with the names of Categories. I need that a click of a button would show the exact list of companies of that category in a repeater below.
My code is
export function button3_click(event) {
$w( “#fintechsDataset” ).setFilter( wixData.filter()
.eq( “category” , “Payments & Remittance” )
);
}
I did this to all the buttons. Unfortunately just the first button-filter works, the others don’t.
Hi,
I would like you to check if the button events are triggered, use
console.log("button x clicked")
to check if the event is actually activated, if it is printing the line to the console, it means the events are running, in that case please share the editor URL so we can inspect, if they are not calling please remove the events, add them from the properties panel and try again.
this problem has been solved - I just removed the whole code and added it again - that’s it:)
BUT there is another thing - there are 12 buttons - 10 of them filters perfectly, 2 don’t. I can’t find the problem, so maybe you could give me some advice.
Besides, in a Preview mode filter works on 12 buttons, but in a website alive - those 2 do not filter.
You can see the code below. The buttons which do not work are “button4” and “button7”