© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Abinash

Checkboxlist's checkbox checked or not

        CustomCheckboxList::make('task_lists')
                                        ->relationship('task_lists', 'title', modifyQueryUsing: function (Builder $query, string $operation) use ($stage) {
                                            $query->where('stage_id', $stage->id)->orderBy('id', 'asc');
                                        })
                                        ->afterStateHydrated(function ($state, $component, ?EmployeeOffboarding $record) use ($stage) {
                                            if (!$record)
                                                return;
                                            $component->state($record->task_lists->pluck('id')->toArray());
                                        })->afterStateUpdated(function($component){
                                            
                                        }),
        CustomCheckboxList::make('task_lists')
                                        ->relationship('task_lists', 'title', modifyQueryUsing: function (Builder $query, string $operation) use ($stage) {
                                            $query->where('stage_id', $stage->id)->orderBy('id', 'asc');
                                        })
                                        ->afterStateHydrated(function ($state, $component, ?EmployeeOffboarding $record) use ($stage) {
                                            if (!$record)
                                                return;
                                            $component->state($record->task_lists->pluck('id')->toArray());
                                        })->afterStateUpdated(function($component){
                                            
                                        }),

how i can get the particular checkbox's(in which one i have recently performed action) status that checked or not
CustomCheckboxList extends from CheckBoxList
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 not showing checked.
FilamentFFilament / ❓┊help
3y ago
Checkbox default checked?
FilamentFFilament / ❓┊help
3y ago
$set all checked in nested CheckboxList
FilamentFFilament / ❓┊help
3y ago
Disable/Hide Checkbox item in CheckboxList
FilamentFFilament / ❓┊help
2y ago