NULL values when submitting form from Livewire Component

I am trying to use Filament on a public page using a Livewire Component. If I am using the ->statePath('data'); it doesn't return data from all the form components, but if I use specific properties it returns the data. What am I doing wrong? Why doesn't the form connect properly with the $data array?
No description
No description
No description
Solution:
Did you add $this->form->fill() in the mount method? ```php public function mount(): void {...
Jump to solution
4 Replies
awcodes
awcodes9mo ago
You have to use $this->form->getState() that runs all the validation etc.
Solution
LeandroFerreira
LeandroFerreira9mo ago
Did you add $this->form->fill() in the mount method?
public function mount(): void
{
$this->form->fill();
}
public function mount(): void
{
$this->form->fill();
}
Carnevalle
CarnevalleOP9mo ago
No, I hadn't. This solved the problem! Thanks 🙂

Did you find this page helpful?