© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
13 replies
gladjanus43

Checkbox List, select at least one

Hi, I have a checkbox list where at least one checkbox needs to be selected. I thought it would be easy using the required but it is allowing me to save the form without one checkbox selected

The checkboxlist is in a custom livewire component

Forms\Components\CheckboxList::make('users')
  ->bulkToggleable()
  ->options(User::all()->pluck('name', 'name'))
  ->hidden(fn() =>...)
  ->required()
Forms\Components\CheckboxList::make('users')
  ->bulkToggleable()
  ->options(User::all()->pluck('name', 'name'))
  ->hidden(fn() =>...)
  ->required()


I also tried adding
->rules([function()....])
->rules([function()....])


But I cant get this working either. It never even validates the thing
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

Checkbox list
FilamentFFilament / ❓┊help
2y ago
checkbox list
FilamentFFilament / ❓┊help
2y ago
Checkbox list
FilamentFFilament / ❓┊help
3y ago
Checkbox list groups
FilamentFFilament / ❓┊help
6mo ago