© 2026 Hedgehog Software, LLC

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

Why can't you set the state of Toggle Buttons?

This does not work, tried several different ways to set the toggle button value

ToggleButtons::make('test')
    ->options([1,2,3,4])
    ->default(1),
ToggleButtons::make('test')
    ->options([1,2,3,4])
    ->default(1),
Solution
Is it on an Edit page?
->default()
->default()
is for creation only.
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

State of multiple toggle buttons
FilamentFFilament / ❓┊help
2y ago
I can't select a value from the toggle buttons
FilamentFFilament / ❓┊help
6mo ago
Can I set default value of toggle?
FilamentFFilament / ❓┊help
3y ago
Can you customise the behaviour of a toggle component?
FilamentFFilament / ❓┊help
2y ago