© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago•
1 reply
thevoidtwopoint0

how to hide other field in select table filter according to another filter

Filter::make('within_h')
->label('H-Tempo')
->schema(function ($livewire) {
return [
\Filament\Forms\Components\Select::make('range')
->label('Tempo')
->options([
7 => '7 Hari',
30 => '30 Hari'
]),
\Filament\Forms\Components\TextInput::make('custom')
->label('Custom')
->visible(fn () // todo)
->numeric()
->minValue(1),
];
})
->query(function (Builder $query, array $data) {
if (blank($data['range'])) {
return;
}

$query->withinH($data['range']);
}),
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 can i show/hide filter according to another filter ?
FilamentFFilament / ❓┊help
3y ago
How to access filter values in other filter field in table filter
FilamentFFilament / ❓┊help
6mo ago
helpertext hide after selecting other select field
FilamentFFilament / ❓┊help
3y ago
Hide table items according to status. No use of filters.
FilamentFFilament / ❓┊help
2y ago