Dynamic wizard checkboxlist selects all

Good afternoon, on a custom livewire page I have a wizard which the user gets to right after registering their website to us. In the wizard they can configure some things, the second step of the option gives the user a choice between two radio buttons. Dependent on the choice they get a dynamic third step, on of those results is a checkboxlist. But when I click anything they either all select or deselect. I saw some other posts, but I felt like those didn't really apply to this scenario. It's probably a skill issue, but I feel kinda stuck. I hope anyone can help me with this I saw in another post that this worked, but I already have it:
$this->form->fill() in mount()
$this->form->fill() in mount()
I have a feeling its because of the $get() which makes the wizard step dynamic, but that also doesn't make sense I think? Next to that I've tried removing the match, no results.
Wizard\Step::make('Products')
->schema(function (Get $get) {
return match ($get('flowType')) {
'product' => [],
'service' => [ CheckboxList::make('flowInterests')
->label('What data are you interested in from a user')
->required()
->bulkToggleable()
->options([
'name' => 'Name',
'email' => 'Email',
'address' => 'Address',
'company' => 'Company',
'phone' => 'Phone number',
])
};
}),
Wizard\Step::make('Products')
->schema(function (Get $get) {
return match ($get('flowType')) {
'product' => [],
'service' => [ CheckboxList::make('flowInterests')
->label('What data are you interested in from a user')
->required()
->bulkToggleable()
->options([
'name' => 'Name',
'email' => 'Email',
'address' => 'Address',
'company' => 'Company',
'phone' => 'Phone number',
])
};
}),
1 Reply
biebthesecond
biebthesecondOP4mo ago
And somehow it returns "true" instead of an array like the docs says
No description
Want results from more Discord servers?
Add your server