© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
16 replies
Noor

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
Select::make('salesperson')
                    ->multiple()
                    ->options($this->options)
                    ->disablePlaceholderSelection()
                    ->live(),
Select::make('salesperson')
                    ->multiple()
                    ->options($this->options)
                    ->disablePlaceholderSelection()
                    ->live(),

I also tested it with below code shows same issue
Select::make('salesperson')
                    ->multiple()
                    ->options([
                        'draft' => 'Draft',
                        'reviewing' => 'Reviewing',
                        'published' => 'Published',
                    ])
Select::make('salesperson')
                    ->multiple()
                    ->options([
                        'draft' => 'Draft',
                        'reviewing' => 'Reviewing',
                        'published' => 'Published',
                    ])
Solution
It should be

public ?array $data = [];

public function mount(): void
{
    $this->form->fill([
        'start' => now()->subDays(7)->format('Y-m-d'),
        'end' => now()->format('Y-m-d'),
        'salesperson' => null,
    ]);
}

public function form(Form $form): Form
{
    return $form
        ->schema([
            Grid::make(3)->schema([
                DatePicker::make('start'),
                DatePicker::make('end'),
                Select::make('salesperson')
                    ->options(fn () => User::orderBy('created_at', 'desc')->pluck('name', 'id'))
                    ->multiple()
                    ->searchable()
                    ->selectablePlaceholder(),
            ]),
        ])
        ->statePath('data');
}
public ?array $data = [];

public function mount(): void
{
    $this->form->fill([
        'start' => now()->subDays(7)->format('Y-m-d'),
        'end' => now()->format('Y-m-d'),
        'salesperson' => null,
    ]);
}

public function form(Form $form): Form
{
    return $form
        ->schema([
            Grid::make(3)->schema([
                DatePicker::make('start'),
                DatePicker::make('end'),
                Select::make('salesperson')
                    ->options(fn () => User::orderBy('created_at', 'desc')->pluck('name', 'id'))
                    ->multiple()
                    ->searchable()
                    ->selectablePlaceholder(),
            ]),
        ])
        ->statePath('data');
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

select->('multiple') not working in form builder
FilamentFFilament / ❓┊help
3y ago
Select->multiple() in SelectColumn?
FilamentFFilament / ❓┊help
12mo ago
Multiple Select with relationship in Builder Block is not working
FilamentFFilament / ❓┊help
2y ago
Selecting all values in Select::multiple
FilamentFFilament / ❓┊help
3y ago