© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
5 replies
skyrowl

CheckboxList ->in() validation not working

Hey,

Using what's on the docs I have the following code with different values:
CheckboxList::make('technologies')
    ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
        'heroicons' => 'SVG icons',
    ])
    ->in(fn (CheckboxList $component): array => array_keys($component->getEnabledOptions()))
CheckboxList::make('technologies')
    ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
        'heroicons' => 'SVG icons',
    ])
    ->in(fn (CheckboxList $component): array => array_keys($component->getEnabledOptions()))


When using the in validation rule and calling
getState
getState
the field returns an error "is invalid"
When removing this rule I have no errors and every other fields are working as expected
Worth noting that I have radios with the same code and those are working as expected

Thx for any help!
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

Dependent CheckboxList not working
FilamentFFilament / ❓┊help
3y ago
CheckboxList not working on Edit
FilamentFFilament / ❓┊help
15mo ago
CheckboxList bulkToggleable is not working
FilamentFFilament / ❓┊help
3y ago
validation message in rules not working
FilamentFFilament / ❓┊help
2y ago