© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
21 replies
Grégoire

Issues with dynamic checkboxlist state in multi-step wizard form

Hi everyone,

I am trying to update a
CheckboxList
CheckboxList
depending on the value of a field set in a previous step of a
Wizard
Wizard
form. The following code works fine and displays the
CheckboxList
CheckboxList
as expected. However, it seems that all the
CheckboxList
CheckboxList
boxes have the same state, so when I check one box, all the boxes are checked.

This seems to be related to how I pass the
$get('user_id')
$get('user_id')
value from one step to another. If I hardcode the numeric id instead of the variable, everything works as expected.

If I add a debug at the beginning of the second step, I see that the query() is called multiple times, including when the
document_id
document_id
is not set up yet, which is not really what I would expect either.

I am really confused as to how to approach the problem. What would you do?

EDIT: my message is too long to paste the code, so I shared it in the first reply.
Solution
You could load them all in, then hide them with the getter
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic Wizard Step
FilamentFFilament / ❓┊help
3y ago
Dynamic wizard checkboxlist selects all
FilamentFFilament / ❓┊help
2y ago
Dynamic form - CheckboxList issue
FilamentFFilament / ❓┊help
2y ago
Help with creating multi step wizard
FilamentFFilament / ❓┊help
13mo ago