Hello Community,
I need some help with a “clear all” button conected to CMS.
I created two dropdowns to filter my products. And created the button to reset the filtering without coding only using the platform configurations but I came across some issue.
The button clears the filter BUT when resets it only resets one dropdown. It clears the names on both, but when I click to filter again only displays what I already clicked before and not the options as it was configured.
I tried some coding and my code resets all the dropdowns to its original ( I have some segments that I still didnt upload products, and the settings I have now only displays products I have in specific segments and materials). The second dropdown that is for materials, displays the segments instead of the materials available when the “clear all” button is clicked.
I’m stuck with this issue and need some input to know how can I resolve this.
I’ve tried ChatGPT to help me code, but still resets the dropdowns the same way I described above.