© 2026 Hedgehog Software, LLC

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

How to use same column attribute in a Table Filter AND in Listing records (Using tabs to filter)

Hello folks!
We want to display a
status
status
attribute in table filters, and in list
getTabs
getTabs
method
but when filtering it's not working properly, as it filters data that has both status.

I want to apply one filter of them; when choosing one, remove the another

Here's how the url is displayed when choosing both filters
http://localhost:8000/admin/bookings?activeTab=Ready&tableFilters[status][values][0]=Ready
http://localhost:8000/admin/bookings?activeTab=Ready&tableFilters[status][values][0]=Ready


TIA
Solution
So I want to reset a specific filter on tab filter, and vise versa
I found the first have of the solution, on the list page I added this function
public function updatedActiveTab(): void
{
  $this->tableFilters['status']['values'] = null;
}
public function updatedActiveTab(): void
{
  $this->tableFilters['status']['values'] = null;
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to "disable globalScope" in "Listing records" when "Using tabs to filter the records"
FilamentFFilament / ❓┊help
2y ago
Using tabs to filter the records in a TableWidget
FilamentFFilament / ❓┊help
2y ago
Default Table Filter when using Tabs
FilamentFFilament / ❓┊help
3y ago
Table not Listing All Records
FilamentFFilament / ❓┊help
6mo ago