Hey Everyone!
I checked to see if there was another post addressing this issue but couldn’t find one.
CMS filter, everything appears to be working as intended, except for the fact that using checkbox filters, when I select multiple checkboxes, it uses ‘and’ logic, instead of ‘or’ logic. So instead of showing both filters, it shows neither (because each content piece only has 1 type).
I read through the docs and couldn’t find a script or an attribute that joins all the checkboxes together as a ‘group’. I did wrap them in a div with a group class, but no success.
Was wondering if anyone else has a workaround for this or knows if I am doing something incorrectly.
Thanks so much for any feedback or assistance!
Read Only Link: Webflow - AmplifAI
Hey @richardjamesportfoli!
The default behavior for CMS Filter is actually an OR filter, as the default match is set to any. This can be modified by the setting below.
However, the behavior you describe might result from a bad setup. I see you’ve added the fs-cmsfilter-checkbox
attribute to your checkbox buttons, which we do not use.
Can you please share the link to your staging domain so I can take a look?
Oh that’s good to know on the ‘checkbox’ attribute, I used the Finsweet library for the checkbox template, and the attribute came stock.
Here is a staging link: https://amplifai.webflow.io/resources-new
And a read only link: Webflow - AmplifAI
Thanks for taking a peek!
The ‘Type’ attribute and checkboxes are the ones setup, we havent setup our other filters just yet, wanted to isolate this issue first.
Thank you! Could you share the password with me? The page is locked 
Hi @richardjamesportfoli!
I noticed that your setup has some attributes in the wrong place and some others that are not from the documentation.
Make sure to read the CMS Filter documentation, follow the steps and copy attributes directly from there and it should work as you want.
You could follow this walkthrough to have a guide
.
Let me know if you need any help!
Hi Pedro and Luis, thank you for the support, I was able to get it working! The walkthrough video from Joe helped a lot.
2 Likes