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:
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.
Jump to solution
7 Replies
toeknee
toeknee2mo ago
You can adjust the select with
->searchable(['first_name', 'last_name'])
->searchable(['first_name', 'last_name'])
Povilas K
Povilas K2mo ago
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
Povilas K
Povilas K2mo ago
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.
Matthew
MatthewOP2mo ago
Thanks for these suggestions..will get on this when the great dev time god allows a window
Matthew
MatthewOP2mo ago
@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) ??
ralphjsmit
ralphjsmit2mo ago
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.
Want results from more Discord servers?
Add your server