# After using reset button, no filters work anymore

**URL:** <https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105>\
**Category:** Ask the community\
**Tags:** wix-data, wix-studio, code\
**Created:** [July 14, 2025, 11:14am UTC](https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105 "2025-07-14T11:14:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5812](https://avatars.discourse-cdn.com/v4/letter/u/e47c2d/32.png) [@user5812](https://forum.wixstudio.com/u/user5812)\
**Post date:** [July 14, 2025, 11:14am UTC](https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105/1 "2025-07-14T11:14:30Z")

</div>

Hi everyone,

I’ve set up three filter inputs connected to a dataset (`#dynamicDataset`):

- `#dropdown1` (Text field – “kunde”)
- `#dropdown2` (Tags field – “Leistungen”)
- `#selectionTags1` (Tags field – “Kategorien”)

Everything works perfectly – until I click the reset button.

This is the code I’m using:

```javascript
import wixData from 'wix-data';

$w.onReady(function () {
    
   $w('#clearButton').onClick(() => {
       
       // Clear filters
       $w("#dynamicDataset").setFilter(wixData.filter());

       // Reset inputs
       $w("#dropdown1").value = null;
       $w("#dropdown2").value = null;
       $w("#selectionTags1").value = null;

   }); 
});

```

The strange part:  
**The reset works great the first time – all filters are cleared and the dataset displays all items again.**  
But after that, **none of the filters work anymore – any new selection has no effect.**

Does anyone know what could be causing this?

Thanks in advance 🙏  
Alex

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [July 14, 2025, 11:46am UTC](https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105/2 "2025-07-14T11:46:26Z")

</div>

Have you got a link to the site/page it is happening on? I’m guessing you’re using a combination of dataset and code, right?

Generally speaking, it’s encouraged to use either code, or datasets (although they do work together in most cases) - it just allows for better control over the flow, rather than splitting the logic between 2 places.

---

<div class="post-metadata">

**Author:** ![user5812](https://avatars.discourse-cdn.com/v4/letter/u/e47c2d/32.png) [@user5812](https://forum.wixstudio.com/u/user5812)\
**Post date:** [July 14, 2025, 12:00pm UTC](https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105/3 "2025-07-14T12:00:25Z")

</div>

Yes, I’m using a combination of datasets and code.  
Thanks for the tip – I wasn’t aware that using just one approach is generally better. That might actually explain some of the issues I’ve been having.

Here’s the link to the page where it’s happening:

> **[WWG-Neu](https://www.wwg-agentur.com//arbeiten-uebersicht-test?rc=test-site)**

If you have any ideas on how to improve the setup, I’d really appreciate it!

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [July 14, 2025, 1:04pm UTC](https://forum.wixstudio.com/t/after-using-reset-button-no-filters-work-anymore/72105/4 "2025-07-14T13:04:28Z")

</div>

Seems to be working perfectly fine. Is there a specific reason why you’re using code? This is because a reset button can simply be connected to the dataset and linked to **Reset Input Values** ; no code required.
