gabrielf5762
Filament 3 page with custom livewire forms modals
I created a Filament page which I understand it is a Livewire component. In it I have buttons that activate forms in modals each form with their own Livewire custom component using:
https://filamentphp.com/docs/3.x/support/blade-components/modal
What works:
1. The form shows in modal
2. The data is saved
My problems are:
1. Although I declare the Livewire component for the forms as extends Page implements HasForms and I declare use InteractsWithForms, the form shows, saves but does not take into account validation at all. Considering it is a custom Livewire component I should validate it manually from the Livewire component?
2. When I save the data I cannot make the parent page refresh. How can I emit an event as when I do $this->emit I receive an error saying Method MyClass::emit does not exist.
Thank you in advance.
17 replies