© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
LancelotGamer

Issue with multi-select and $data array

The $data array is null even if I add an item / items in the multi select

Actions\Action::make('assign_ticket')
    ->form([
        Select::make('users')
            ->label('Technical Support User')
            ->multiple()
            ->relationship('technicalSupport', 'email', function ($record, Builder $query) {
                $query
                    ->where('department_id', $record->department_id)
                    ->where('level_id', '=', 2);
            })
            ->required(),
    ])
    ->action(function (array $data, Ticket $record): void {
        dd($data);
    }),
Actions\Action::make('assign_ticket')
    ->form([
        Select::make('users')
            ->label('Technical Support User')
            ->multiple()
            ->relationship('technicalSupport', 'email', function ($record, Builder $query) {
                $query
                    ->where('department_id', $record->department_id)
                    ->where('level_id', '=', 2);
            })
            ->required(),
    ])
    ->action(function (array $data, Ticket $record): void {
        dd($data);
    }),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

multi-select with relationship not returning data
FilamentFFilament / ❓┊help
3y ago
Select and TextColumn with Associative Array
FilamentFFilament / ❓┊help
2y ago
disableOptionsWhenSelectedInSiblingRepeaterItems fails with multi-select
FilamentFFilament / ❓┊help
17mo ago
disableOptionsWhenSelectedInSiblingRepeaterItems fails with multi-select
FilamentFFilament / ❓┊help
17mo ago