© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
36 replies
Robin

Set state for enum

How can I get the selected value for a select column when the date is filled from an enum?

Forms\Components\Select::make('type')->options(VendingMachineType::toAssociativeArray())
Forms\Components\Select::make('type')->options(VendingMachineType::toAssociativeArray())


the enum data returns;

[1 => 'item 1', 2 => 'item 2']
[1 => 'item 1', 2 => 'item 2']
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

Updating state after using $set()
FilamentFFilament / ❓┊help
3y ago
Select menu. Enum. How set default-selected
FilamentFFilament / ❓┊help
2y ago
enum
FilamentFFilament / ❓┊help
2y ago
v4: set TextEntry state from handleRecordCreation
FilamentFFilament / ❓┊help
7mo ago