© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
2 replies
lupoz
Can I set default value of toggle?
I want to make active by default so must be 1 or true
.
.
.
Toggle::make('active')
->onColor('success')
->offColor('danger'),
Toggle::make('active')
->onColor('success')
->offColor('danger'),
Solution
Use default
(true
)
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
set toggle default value in form builder
F
Filament / ❓┊help
3y ago
Set default value of DateTimePicker
F
Filament / ❓┊help
3y ago
colorpicker default value set
F
Filament / ❓┊help
2y ago
Set default checkboxlist value
F
Filament / ❓┊help
3y ago