F
Filament17mo ago
Rus

How to use table inside a form?

I want to use table with checkboxes, pagination and filters (as we use it on list page) inside a form on edit page. Is that possible?
7 Replies
awcodes
awcodes17mo ago
That is not possible. Since tables have forms in the filters etc they can not be used inside of a form. This is a limitation of html and not filament. However, it might be possible in the near future with livewire 3 trying to support teleportation.
pocket.racer
pocket.racer17mo ago
But Dan said this https://github.com/filamentphp/filament/discussions/3654
In Filament v2, you are unable to embed the table builder within the form builder. The most useful application for this is putting a relation manager inside a resource form in the admin panel. This is due to a limitation with HTML, as it doesn't allow nested <form> elements.
This new teleport feature will allow us to teleport the nested <form> elements away, and provide you with this feature!
Livewire v3 documentation has teleportation as well, so teleport wasn't removed from livewire v3 https://livewire.laravel.com/docs/teleport
awcodes
awcodes17mo ago
Not sure what you’re getting at. I never said it was removed. But that LW3 would probably make it possible.
pocket.racer
pocket.racer17mo ago
As in i thought it is possible in filament v3 given Dan past comment Looks like it is still not possible in filament v3 then, going by your answer, despite the existence of livewire v3 teleport feature
awcodes
awcodes17mo ago
See the note at the bottom of this page. https://livewire.laravel.com/docs/teleport I think it will get there but Caleb didn’t even mention it at Laracon during his talk and it’s been a feature request for a long time in livewire. Just personally don’t think it’s ready yet. But I’m sure it will be soon.
Laravel
Teleport | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Rus
RusOP16mo ago
@awcodes , @pocket.racer Thank you, guys, for your answers and discussion! They made that more clear. Let's hope that something similar will arise in the future.
Tally
Tally16mo ago
+1 for tables in forms, maybe a simple version displaying a simple table as plugin? 🙂
Want results from more Discord servers?
Add your server