© 2026 Hedgehog Software, LLC

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

Update select with live API data

Hi all,
I've got a select which has a suffixAction to reload options from an API:

 Select::make('project_id')
        ->label('Project')
        ->options($this->projects)
        ->placeholder('Select a project')
        ->columnSpan(1)
        ->required()
        ->default('1207283586562118')
        ->suffixAction(
            Action::make('refreshProjects')
                ->label('Refresh projects')
                ->icon('heroicon-o-arrow-path')
                ->action(function (Select $component) {
                    $this->updateProjects();
                })

        ),
 Select::make('project_id')
        ->label('Project')
        ->options($this->projects)
        ->placeholder('Select a project')
        ->columnSpan(1)
        ->required()
        ->default('1207283586562118')
        ->suffixAction(
            Action::make('refreshProjects')
                ->label('Refresh projects')
                ->icon('heroicon-o-arrow-path')
                ->action(function (Select $component) {
                    $this->updateProjects();
                })

        ),


But although updateProjects() does get the correct format data from API, I can't get it to re-load the select box from the new data. Any ideas how to do this? I've searched here, but nothing worked.
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

Live select update issue
FilamentFFilament / ❓┊help
7mo ago
Select live update problem
FilamentFFilament / ❓┊help
14mo ago
Select with live() and searchable()
FilamentFFilament / ❓┊help
16mo ago
Select component with searchable & live?
FilamentFFilament / ❓┊help
3y ago