© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
thijzie

Update table filters based on search query?

Hello, I have been trying to update my filters based on the search query that is entered. I tried using the
->afterStateUpdated(function ($state) use ($table) {}
->afterStateUpdated(function ($state) use ($table) {}
on my filters, but it only seems to work for other filters. The search query does not seem to affect the state / call the afterStateUpdated method for the filters.

Is there any way to call the the
afterStateUpdated
afterStateUpdated
on the filters from another part of my code, for example from
applySearchToTableQuery
applySearchToTableQuery
?

In case the question is unclear, the goal is to have someone enter a city name ('e.g. Venice'), and updating the country filters so that only applicable options are shown.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Card filters based on table filters
FilamentFFilament / ❓┊help
3y ago
table filters update event
FilamentFFilament / ❓┊help
3y ago
Use query params for table widget search and filters
FilamentFFilament / ❓┊help
7mo ago
Change table columns/filters based on active tab?
FilamentFFilament / ❓┊help
12mo ago