List filtering with URL (multiple params)

I’m aware of List Filtering with URL, How to filter list data from the URL? – Softr Help Docs it’s a very handy filtr

I’d need Multiple parameters, i.e.

?filter-by-Name=Doe&filter-by-Position=Engineer
1 Like

Seems it’s working by default even if not mentioned in the docs. :clap:

1 Like

Related question : is it possible to add Multiple Select in the URL ?

I.e. :

?filter-by-Position=Engineer,Sales  

I checked that ?filter-by-Position=Engineer&filter-by-Position=Sales did not work

Hey @erwanp,

This is not possible, however it is a feature request.

I will add it to our list :slight_smile:

1 Like

I suspect that the approach used here to pre-fill the search input field could also be used to pre-select multiple inline filter keywords.

1 Like

Has this feature been released?

Hey @StevenS,

It’s with regret that I should mentioned that this feature has not been released yet.

I will make sure to check this with product team on Monday and will give an update.

Hi,

Any news on this?

Thanks,

Hey @BTS, we actually just rolled this out for the beta Grid block. It’s not yet in our docs but the URL format for multiple filters is this:

?filter-by-Name=Value1&filter-by-Name=Value2&filter-by-Name=Value2

Note that this will only work when the multiselect toggle is checked on in studio.

3 Likes

It works, awesome! Thxs

1 Like

hi @martynas
Thanks for the help !

Does this functionality exist for the “List with horizontal cards” block?

Hi there, I’m trying to use this without much luck, my set up is the following, i have a details page block with some data and underneath a grid block with items linked to the ‘current record’. then, my url looks like this:

(…).com/diagnosticos-cursos?recordId=recoP2cLdACkUgFfn&filter-by-Cursos=1ro%20B%C3%A1sico

it just shows the full list of records

Hi @Suzie, any updates on this?

It might not be related but the url param must match an inline filter otherwise it won’t work.

nice! it worked!

now, is it possible to hide the filter? i feel maybe with a custom code i should be able to do so right?

Yes… and no .

There are no stable selectors for the inline filters.
Your code might work a week but won’t work the next week or next month.

Hey @matthieu_chateau,

We have good news, now we have stable selectors > Custom Code Events and Style Selectors – Softr Help Docs