© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
TNDJXD

Sharing State between forms

I have a custom livewire page in which I need to build many custom forms.

You can think about it like a wizard but I can't use a wizard for it since the structure will be much more complex.

What I want to do is to create multiple forms and render them conditionally on the front end.

I have started by having 2 forms and both of them use Section layout.

I want that when the first form is submitted perform some DB updates and update the state of the second form.

Things that should change are that I want to collapse the first form, extend the second form, and for now just fill the TextInput with whatever the value was in the first form
TextInput::make('name')
TextInput::make('name')


Issues I am having are.

1. When I click next first time nothing happens, only when I click the second time does the collapse/extend get updated ( I did DD in the method
submitAffiliateProgram
submitAffiliateProgram
and it does get called the first time but the frontend is not updated )
2. I can't get value from the first form in the second form.
example.php2.83KB
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

Sharing styles between panels
FilamentFFilament / ❓┊help
2y ago
passing data between forms
FilamentFFilament / ❓┊help
14mo ago
Share state between nested modal
FilamentFFilament / ❓┊help
16mo ago
Maintaining state between wizard steps
FilamentFFilament / ❓┊help
2y ago