FilamentF
Filament2y ago
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),
Solution
Is it on an Edit page? ->default() is for creation only.
Was this page helpful?