Parent-child Dependent Dropdowns

Filament 3
Also available in Filament 4/5 version

This project demonstrates the Filament Select field with the ability to refresh the options based on the value of another dropdown option.

The example is with countries and cities: in a form to add a new shop, when you choose a country, the list of cities is refreshed.

026-parent-child-dependent-dropdowns

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Parent-child Dependent Dropdowns
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 168 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 168 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

For the first select, we generate options from the DB. The first select field must be set to live().

The second select input makes a DB request after selecting the value in the first select.

Based on the first select, we set a placeholder for the second select input.

Here is what these two select inputs look like...

The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.