© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Jon Mason

My Select isn't getting a value on form submit from Livewire Component

My Select:

 public function form(Form $form): Form
    {
        return $form->schema([
            Select::make('quickbooks_vendor_ref_id')
                ->label('Quickbooks Vendor')
                ->options(LocationVendors::get(SelectedLocation::get())->pluck('display_name', 'quickbooks_vendor_ref_id')->toArray())
                ->live()
                ->searchable()
                ->loadingMessage('Loading vendors...')
                ->suffixAction(
                    Action::make('refreshVendors')
                        ->label('Refresh Vendors')
                        ->icon('heroicon-o-arrow-path')
                        ->action(fn () => LocationVendors::get(SelectedLocation::get(), true)->pluck('display_name', 'quickbooks_vendor_ref_id')->toArray())
                ),
...
}
 public function form(Form $form): Form
    {
        return $form->schema([
            Select::make('quickbooks_vendor_ref_id')
                ->label('Quickbooks Vendor')
                ->options(LocationVendors::get(SelectedLocation::get())->pluck('display_name', 'quickbooks_vendor_ref_id')->toArray())
                ->live()
                ->searchable()
                ->loadingMessage('Loading vendors...')
                ->suffixAction(
                    Action::make('refreshVendors')
                        ->label('Refresh Vendors')
                        ->icon('heroicon-o-arrow-path')
                        ->action(fn () => LocationVendors::get(SelectedLocation::get(), true)->pluck('display_name', 'quickbooks_vendor_ref_id')->toArray())
                ),
...
}

and this produces the attached screen shot:;
 public function save(): void
    {

        $data = $this->form->getState();

        dd($data);
}
 public function save(): void
    {

        $data = $this->form->getState();

        dd($data);
}


No matter what I do, it's always null.
image.png
Solution
yeah the value is selected..
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

Update Livewire component from Select
FilamentFFilament / ❓┊help
2y ago
use select form component inside livewire custom form
FilamentFFilament / ❓┊help
3y ago
Multiple select component data is returning null on a livewire form component
FilamentFFilament / ❓┊help
2y ago
Getting State From Livewire Component
FilamentFFilament / ❓┊help
2y ago