Problem with radio filters and query params stacking (AND instead of OR)

:waving_hand: Hi @Support-Luis @Support-Pedro

I’m having an issue with Finsweet Filter V2.

Context:

  • I have 2 filter lists:
    :right_arrow: Format
    :right_arrow: Client
  • Each list uses radio buttons.
  • Both lists share the same input name group, because I want to allow only one filter selection at a time.

The problem:

The filter works fine individually on either list.
However, when I use Finsweet’s query param feature, I notice an unexpected behavior:
:backhand_index_pointing_right: Instead of working as an OR (either one or the other), it behaves like an AND.
So, if a parameter is already set in the URL, it stays active even when I select another filter.
As a result, the filters are stacking up, whereas with radio buttons I want the previous value to be replaced.

What I want:

When I select a radio in Format, it should replace any active filter from Client, and vice versa. In short: only one active value at a time.

My question:

:right_arrow: Has anyone already faced this issue?
:right_arrow: Is there any specific setup required with Finsweet radios to avoid this “AND” behavior via query params?

Thanks a lot in advance for your help! :folded_hands:

RO

With custom code, filtering eventually works! But… it seems incompatible with the active state… and I need to have an active state for users to find their way around.

Can you help me?

Hey @coraline! I’m taking a look at what the best approach here is. I’ll let you know as soon as I have something we can work with!