Conditional Filtering
Im assuming this is possible with custom functionality, but just wanted to check prior if there is any easy/simple solutions.
I have a select filter based on a location state, but when I select a state, I want to then show another select with all cities under that state (and stay hidden if none exist).
9 Replies
This is what I have so far
I need the second select to hide when state is null, but also need to make the option in the second select filter depending on the value of the first select.
its the same idea as the reactive select
https://filamentphp.com/docs/3.x/forms/advanced#the-basics-of-reactivity
inject Get
Yeah, think I got the function part working, following this: https://www.youtube.com/watch?v=ssymfBywqOY
Code With Tony
YouTube
7 Filament Dependant Select Options - FilamentPHP V3 Tutorial
In this video, we will learn how to create dependant select options in FilamentPHP V3.
We will start by creating a simple form with three select inputs, one for countries, one for states and one for cities.
Then, we will use the $get() to make the state select input dependent on the country select input.
This means that the options in the state...
Wasnt actually as hard as I thought it was going to be
the power of filament πͺ
Im falling in love with it day after day like
We're beginning to implement it at work
thats amazing π
Fair to say, I done a good sales pitch for it π€£
And had to flex that it includes my first public github contribution π