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?
Solution:Jump to solution
Did you add
$this->form->fill()
in the mount method?
```php
public function mount(): void
{...4 Replies
You have to use
$this->form->getState()
that runs all the validation etc.Solution
Did you add
$this->form->fill()
in the mount method?
No, I hadn't. This solved the problem! Thanks 🙂