© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Bruno Silva

Checkboxlist selecting all options

I have a simple CheckboxList, but when I click in one option, it selects or deselects all of them. The only difference of that checkboxlist is that it is in a resource from another panel (my "client" panel, which is not the default "admin" one)

* other fields in the same form works as they should.

CheckboxList::make('technologies')
    ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
    ])
CheckboxList::make('technologies')
    ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
    ])
Solution
found the problem...

In my CreateBooking I have a
fillForm
fillForm
:

protected function fillForm(): void
{
    $data = request()->first_booking_data;

    if ($data) {
        $this->form->fill($data);
    }
}
protected function fillForm(): void
{
    $data = request()->first_booking_data;

    if ($data) {
        $this->form->fill($data);
    }
}


I did that so the client can fill a form without logging in. Then it would send that data to this resource to automatically fill that form after the client registers.

Adding this line at the end seems to have worked:
$this->form->fill();
$this->form->fill();


but I'm trying to improve this code. It doesn't feel like the right way to do it.

anyway, thanks for the help!
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

CheckboxList selecting everything
FilamentFFilament / ❓┊help
11mo ago
CheckboxList group options
FilamentFFilament / ❓┊help
3y ago
CheckboxList Relationship Options Descriptions
FilamentFFilament / ❓┊help
3y ago
Checkboxlist disable specific options
FilamentFFilament / ❓┊help
3y ago