© 2026 Hedgehog Software, LLC

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

Filtering select options on-fly

I've been working on a feature where I have a select field and based on the first selection I chose, I want the form to dynamically filter out options I have.
Current concept works on filtering by first selection entity dimensions, for example, if I make a choice of 600x400, I want options to re-render with options that have the same size of 600x400.

I've tried to set Select form input as
live()
live()
/
reactive()
reactive()
, added a relationships'
modifyQueryUsing
modifyQueryUsing
closure to do the filtering which yields a correct query after dumping it and I have tried to set it in
->options(...
->options(...
by using closure. But nothing really seems to work as options are not updating.

Tried alternate solution of disabling fields which don't fit the first pick criteria, but that only works when I re-open the select - the goal should be for options to be filtered out without me re-opening the select. Is it possible?
Solution
Ok, I found that Select isn't the best option here. If I make this for
CheckboxList
CheckboxList
instead, it can properly re-render available options as my intention was. Don't think that
Select
Select
is really capable of that without re-opening it.
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

Filtering Enum Options
FilamentFFilament / ❓┊help
8mo ago
Filtering a Select field's options based on a parent relationship
FilamentFFilament / ❓┊help
3y ago
select options
FilamentFFilament / ❓┊help
3y ago
Select Options
FilamentFFilament / ❓┊help
3y ago