Filtering a Select Box
Has anyone successfully introduced functionality whereby they can filter a select box ?
For example, if I have a an employees table and a document table, and I have a form that adds document records for employees...
I'll have a select box that allows me to select the employee(s), but what if i wanted to enable the users to filter that list down, such as maybe all the employees with a certain grade etc ?
I realise there are other ways to achieve something similar, like starting with the employees table and having bulk add...
But wondered if anyone else had tried this approach ?
Solution:Jump to solution
Filament
Record Finder Pro by Ralph J. Smit - Filament
Replace your
Select
's with beautiful Record Finders to make searching easier. Works everywhere out-of-the-box & integrates with resources.7 Replies
You can adjust the select with
I recently reviewed a (paid) plugin on my channel called Record Finder Pro which does what you want: https://youtu.be/oa8boQMCU7M?si=avD_lC91AoOLW3ia
Filament Daily
YouTube
Filament Plugin Record Finder Pro: "Select" From Table
A review of a PAID plugin for Filament that allows you to pick records more conveniently: from a table, using filtering/sorting/searching.
Link to the plugin: https://filamentphp.com/plugins/ralphjsmit-record-finder-pro
Link for 15% discount (until November 30): https://ralphjsmit.com/filament-plugins/filament-record-finder-pro/configure?disco...
Solution
Filament
Record Finder Pro by Ralph J. Smit - Filament
Replace your
Select
's with beautiful Record Finders to make searching easier. Works everywhere out-of-the-box & integrates with resources.Thanks for these suggestions..will get on this when the great dev time god allows a window
@Povilas K , @ralphjsmit - (cheeky, I could find this out myself with enough research, but you'll know straight away question)... do these solutions work where the Create form is already modal\slideover ? (I understand nesting modals is challenging) ??
Yes, that does work! You can add eg a tableHeaderAction() with a modal form and then it should work.
You would need to test if CreateAction::make() works, but otherwise a normal Action::make('create') with a form and action works fine for sure.