Custom Form Layout Strategy

I'm starting to get requests (finally!) for more complex form layouts. The image is one example. I often have multiple columns and rows and we want form fields in specific orders. I've got that working pretty well with Grid::make() . I've also used Split and Section for some of this. For more complex grid layouts like the screenshot here, what's the best practice? Grid only? Splits for left/right + grids for rows/columns within a split? Some of these get nested/ugly fast and just curious how everyone is solving this. I've also done it with custom views. I often have to come back and edit these forms later so trying to start off the right way. Would love to know how you guys handle this.
Solution:
I'd probably do it with a custom layout component. for example: https://github.com/awcodes/filament-extras/blob/main/src/Forms/Components/FixedWidthSidebar.php...
Jump to solution
3 Replies
Solution
awcodes
awcodes7mo ago
I'd probably do it with a custom layout component. for example: https://github.com/awcodes/filament-extras/blob/main/src/Forms/Components/FixedWidthSidebar.php
Chrispian
ChrispianOP7mo ago
That's a good idea. I like how reusable that would make it too. Sketching out ideas for how to implement it. Thank you!
Want results from more Discord servers?
Add your server