© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Jon Mason

collapse form section on submit

I have a use-case that would probably be more like a wizard, but I have limited screen real estate and I need to use a slideover. So my thought was to use a form section and once that section is submitted, to collapse it and open up the next form section. I tried using a prop on the component and then setting it when the form is submitted, passing that prop into the
->collapsed()
->collapsed()
method, which I see takes a closure.

Unfortunately, the prop is getting updated, but it seems the form section is only rendered once (maybe?). I did eventually kind of get it working but you'd have to click the submit button two or three times to make it collapse, which isn't ideal. Is there any way to accomplish this? Can I tap into the collapsed attribute of the section with alpine or something?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Section Collapse
FilamentFFilament / ❓┊help
3y ago
Collapse section on 'sm' viewport
FilamentFFilament / ❓┊help
3y ago
Remember section collapse position
FilamentFFilament / ❓┊help
3y ago
How to collapse section on button click
FilamentFFilament / ❓┊help
2y ago