multiple() & searchable() stops Select from working.
Hi Everyone,
If I run
I get a working select box with cats names.
If I go into the devtools and manually add the attribute then the select becomes a multiple enabled select (not sure if it's the correct format or not, but when I submit the form and dd() from the create method it outputs the multiple selected cat options.
However, if I alter the Select call in the form() method, and add either
or
then I get this element
with no options visible at all.
Is anybody able to help me out with regards to this problem? I've been working on it for 2 days now, but have had no luck except running around in circles.
3 Replies
->searchable()
or ->multiple()
use a non-native select. So it sounds like you didn't include all the JS mentioned in the installation guide.
You probably also have a JS error in your console?Did you check it out as Dennis said?
Did you follow these sections?
https://filamentphp.com/docs/3.x/forms/installation
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
@Leandro Ferreira @Dennis Koch Wow! You two rock! I thought I'd followed all of the installation docs (in fact all the docs).
I had the wrong assumption about having to go through the separate installation instructions if I installed the entire FilamentPhp package. Looking back, I was just getting started with Filament then so probably missed something.
I'd better go through the installation steps for everything, and see what else I've missed.
Thank you both again for taking the time to reply.
John