© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
dwiser

$set all checked in nested CheckboxList

I am creating a form section visually similar to the bezhansalleh/filament-shield package but for project notification options instead of spatie permissions. When creating a user, there is a Section for every project, each including a Toggle and a CheckboxList to choose individual notifications or all in bulk. Changing the Toggle will update all the Checkboxes to the same state and unchecking any one Checkbox will change the Toggle to off.

I can't seem to find a way to reference each individual CheckboxList item using $set.

A bulk toggle of the checkbox list would likely solve my issue but I'm using the opportunity to better understand filament and keep the preferred UI instead of fall back to the bulk toggle method.
Preview image
Solution
I've already re-written most of the form but in the process I think I figured out the problem. I assumed the CheckboxList would create an associative array:
[
  'Bid Request Received',
  'Bid Sent',
  // ...
]
[
  'Bid Request Received',
  'Bid Sent',
  // ...
]
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 options set some value to checked
FilamentFFilament / ❓┊help
3y ago
Checkboxlist set all true by default
FilamentFFilament / ❓┊help
2y ago
Checkboxlist's checkbox checked or not
FilamentFFilament / ❓┊help
2y ago
Checkboxlist: Options can't be checked separately
FilamentFFilament / ❓┊help
2y ago