© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
dyo

Set default checkboxlist value

Can someone give me example how to have a checkboxlist with default value?

i've tried this, but it's not working
CheckboxList::make('test')
  ->options([
      1 => 1,
      2 => 2,
      3 => 3,
      4 => 4,
  ])->default([2]),
CheckboxList::make('test')
  ->options([
      1 => 1,
      2 => 2,
      3 => 3,
      4 => 4,
  ])->default([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

Checkboxlist set all true by default
FilamentFFilament / ❓┊help
2y ago
colorpicker default value set
FilamentFFilament / ❓┊help
2y ago
CheckboxList options set some value to checked
FilamentFFilament / ❓┊help
3y ago
set default value for toogle
FilamentFFilament / ❓┊help
10mo ago