# Attributes v2 Filter AND magic logic not working

**URL:** <https://forum.finsweet.com/t/attributes-v2-filter-and-magic-logic-not-working/5665>\
**Category:** Attributes\
**Tags:** cmsfilter, attributes-v2\
**Created:** [July 29, 2025, 7:43am UTC](https://forum.finsweet.com/t/attributes-v2-filter-and-magic-logic-not-working/5665 "2025-07-29T07:43:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marvin/32/1429_2.png) [@marvin](https://forum.finsweet.com/u/marvin)\
**Post date:** [July 29, 2025, 7:43am UTC](https://forum.finsweet.com/t/attributes-v2-filter-and-magic-logic-not-working/5665/1 "2025-07-29T07:43:21Z")

</div>

Hi there,

I am trying to get the filter v2 to work. The filter in general works. However I have the issue that I want to change the magic logic to AND.

Its a group of checkboxes (all have the checkbox group name “Checkbox”). But i dont seem to get it to work.

Here is the Link: [Foodji | über 300 frische & gesunde Gerichte](https://382948djsakdjaks-dd799a0a90e97a41a7f2b9.webflow.io/unser-essen)

For example when I choose Vegan and Mains its working, however when i then choose also Vegetarian, its not showing anything. That could be true. But when i then unselect vegetarian again, its not showing me anything (even tough I have seen a bunch of products with the same filter logic before). In generel it seems that the AND logic is not working for me.

Also I would like to see the query parameters so the filter can be share we pre configured settings, but that also doesnt seem to work.

What am I doing wrong? Thanks for any help!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/system/32/210_2.png) [@system](https://forum.finsweet.com/u/system)\
**Post date:** [July 29, 2025, 8:55am UTC](https://forum.finsweet.com/t/attributes-v2-filter-and-magic-logic-not-working/5665/2 "2025-07-29T08:55:17Z")

</div>

Hey @marvin!

We’ve taken a look at your Filter v2 issues. It seems there are two things going on:

For the AND logic to work correctly, you need to add fs-list-filtermatch=“and” to your `fs-list-element="list"` element.

We noticed that all your checkboxes currently use the same `data-name="Checkbox"`.

To avoid confusion and ensure filters work as expected, make sure that all checkboxes within the same group share the same `data-name`. For example:

- Use `data-name="Ingredients"` for your ingredients checkboxes

- Use `data-name="Kind"` for your kind/category checkboxes

Each group should have a unique name so that the filters apply independently but still respect the AND logic when combined.

Keep in mind that with AND logic, items must match all selected criteria at the same time. So, if no CMS items meet every selected condition (e.g., “Vegan” AND “Mains” AND “Vegetarian”), the list will appear empty.

We noticed that you have `fs-list-showquery="true"` on your script tag, that’s great!  
However, the reason why the show query feature isn’t working is because the attribute value on your fs-list-showquery option is incorrect.  
Please correct or remove `fs-list-showquery="query"` from the element with `fs-list-element="list"`.

You might want to check your CMS data structure to verify items actually have multiple categories that would work with AND logic. Test with combinations you know exist in your CMS.

Let us know how these changes work for you! If you need more help, @Support-Luis or @Support-Pedro can assist further.
