Hi, I have a dynamic category page for a dataset with data displayed in a repeater. Users are able to filter the data displayed using multiple drop downs. I need a 'clear filters' button, or even just a button that will reload the whole page - but I can't for the life of me work out how to do this.
I've tried wixLocation.to(url) - with no luck, the page goes back to the top as if it's refreshing, but the dataset and filters don't reset.
I've tried $w("#dataset").refresh() - this doesn't seem to do anything at all
I've tried to reset each dropdown box to 0 i.e. $w("#dropdown1").selectedIndex = 0; - this resets the placeholder text in the dropdown to the first option, but the repeater remains filtered.
I've also tried just linking the button to the page url - but this still doesn't refresh the filters??
When I manually refresh the page (i.e. command+r), the page AND the filters refresh. How can I get a button to perform this function?
Thanks in advance :)