CheckboxList Issue on Custom Livewire page
Hi everyone, I'm having an issue using a CheckboxList on a custom Livewire component. I've only imported the Filament forms as I don't need the entire interface. I'm building a wizard with several steps and some inputs/checkboxes within. Here is the example code:
I have mainly two problems:
When using the "public $allocazione" variable in the Livewire component, clicking on a single checkbox marks all of them as active. However, if I don't use this variable, the individual checkbox works correctly, but when I click "next" to go to the next step, I receive the error: "No property found for validation: [allocazione]".
Could you please help me understand what I am doing wrong? Thank you!
1 Reply
you need form fill
public function mount(Request $request): void
{
$this->form->fill();
}