multiple() is not working in form select
I have a Select::make('salesperson') on my form and its works fine If I use options but when I use multiple with it, it does not show anything in the search bar saying no results found
My code
I also tested it with below code shows same issue
12 Replies
console errors?
You are using a custom page or a livewire component, right?
Did you add
$this->form->fill()
in the mount method?
Did you create a state path in your form?yeah custom page , no did not added form->fill()
If you are using a custom page or a custom Livewire component, please follow these steps:
- Add
$this->form->fill()
in the mount method.
- For the fields in your form, choose one of the following:
- (Recommended) Create a statePath in your form.
- or add the field as a public property in your Livewire component.
@Leandro Ferreira using this in my code
you should use form fill
@Noor, did it work?
nope I'm trying - this time it did not showed any console error
share the whole code you are trying
Solution
It should be
worked Thankyou 🙂