Relationship between two dependent select fields
Hi everyone, how do I connect two selects to each other in the admin panel? I have a select customers and a contacts... the values of the select contacts must be filtered based on the value of the select customers
8 Replies
You didn't say whether you are in v3. But if you are, check here:
https://filamentphp.com/docs/3.x/forms/fields/select#customizing-the-relationship-query
Disabling specific options
I tried this, but it doesn't work
Attach the not working code
Where am I doing wrong?
I think here
Use $get instead
https://filamentphp.com/docs/2.x/forms/advanced#dependant-fields--components
Dan Harrin
YouTube
Dependant Select Inputs - Filament TALL Stack Form Builder
This video, we are using the filament/forms package. You can read the full documentation at: https://filamentadmin.com/docs/forms
You can find out more about Filament on our website: https://filamentadmin.com
Follow me on Twitter for more tutorials and other TALL stack tips: https://twitter.com/danjharrin
If you found this video useful, pleas...
Thank you very much!