Validation won't work with Form and Table on one component
Hi there guys!
I have Form and Table in a single livewire component. I am using the form to make a more complex query for my table. I need to validate the field on my forms but validation wont work automatically maybe because I am not saving something to the database and it is a livewire component, not an admin panel or filament page.
When I do
It doesn't work. Probably because I have both Form and Table in the same livewire component.
When I do
The validation works when there is an error (i got some error message). But when there is no error, I would get database error:
I tried removing the table from the livewire component and
already works. It seems that there is a conflict with $this->form when I'm using both Form and Table in the same livewire component.
But I really need both Form and Table in the same livewire component for this task. Maybe you can help me find solution. Thanks a lot!
By the way, what I want to put validation are the fields min max price range, from to date range and min max domain length.
0 Replies