© 2026 Hedgehog Software, LLC

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

Assign an array to a Forms\Components\Select

How can I assign an array to a Forms\Components\Select? After executing the Action 'refresh_status', the Select options should be set with $statuses.

$statuses has the value:

[
"pending" => "Wachtend op betaling"
"processing" => "In behandeling"
"on-hold" => "In de wacht"
"completed" => "Afgerond"
"cancelled" => "Geannuleerd"
"refunded" => "Terugbetaald"
"failed" => "Mislukt"
"checkout-draft" => "Concept"
]
Solution
It works! Having

php public array $importableStatuses = [];
php public array $importableStatuses = [];


defined in the ListSuppliers makes it work. Thank you so so much for the help!
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

\Forms\Components\Select
FilamentFFilament / ❓┊help
5mo ago
Run Forms\Components\Select::..->options(..) after another Forms\Components\Select filled
FilamentFFilament / ❓┊help
3y ago
Filament\Forms\Components\Select::isOptionDisabled():
FilamentFFilament / ❓┊help
3y ago
enum value in Forms\Components\Select
FilamentFFilament / ❓┊help
2y ago