F
Filament2w ago
Kyle

Advanced Search on Select Form Component by Opening A Modal

Hello! What is the best way to allow for more complex searching options when choosing a Select option? I added a button to a Select component so that a modal with a form opens, where they can choose more complex search queries when searching an option like using checkboxes, other Select components, on top of the usual keyword search (unlike just a single query string when using the Select's searchable setting), and then finally choosing an option from the search results, and that will be the Select component's state. I was able to add an action to the Select component's suffix, and I also made a custom Livewire component containing a Table, and tried to render it as custom modal content. However, I encountered a weird error where $this in the Livewire component's view file is an instance of the CreateResource page (specifically, CreateArticle for me) instead of what I expected to be an instance of my custom component (SearchGame). Anyway, I was thinking that maybe I'm doing something wrong, or maybe this isn't even the right approach to this. I'm not asking for hand-holding or complete code--just guidance is enough. I will be very thankful to hear your opinion and guidance in this matter! Thank you very much in advance!
1 Reply
Kenneth Sese
Kenneth Sese2w ago
@Kyle I'd take a look at https://filamentphp.com/plugins/ralphjsmit-record-finder-pro from @ralphjsmit
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.

Did you find this page helpful?