© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
22 replies
krizz3332

Add tablefilter to querystring programatically

I haven't found a solution in the discussions or discord yet.
My goal is to have some buttons above the table which should prefill the table filters. And update also the querystring.

I don't want to use the querystring direclty (href to some url with the querystring). I would like to use some methods from the HasFilters trait. But I couldn't find a proper one. I only found removeTableFilter but am searching for like addTableFilter.

Is there another way of prefilling the table filters to build multiple "sets" for some quick buttons above the table?
Solution
If you're on Filament v3 you can look at Tabs. https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

querystring in v3
FilamentFFilament / ❓┊help
3y ago
Filter Table by Querystring
FilamentFFilament / ❓┊help
2y ago
Programatically create record?
FilamentFFilament / ❓┊help
3y ago
Help with passing tableFilter in url - SOLVED
FilamentFFilament / ❓┊help
3y ago