© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
2 replies
arichard123

Forms as Livewire component and Form Restoration

I want a search form which populates the query string of the search results page, so it can be bookmarked or linked to. I want to then be able to go back, make a change to the form and then submit the new values. This works with a single Select or a single TextInput, but put the two together and it doesn't seem to.

I'm doing a redirect like this:

$this->redirectRoute('searchresults', $this->form->getState());

The test process is 1. Fill out the form & Submit. 2. See the values. 3. Click back - see the values are still in the form. 4. Submit again - we have the default data not the values that match the form! Bad!

I've attached a screencast showing this, I don't know if it will work. I would appreciate any help.

Perhaps I shouldn't be using Filament for this job, any thoughts appreciated
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

Livewire component with tables and form
FilamentFFilament / ❓┊help
2y ago
Livewire Form Component problem
FilamentFFilament / ❓┊help
13mo ago
Form inside Livewire Component:
FilamentFFilament / ❓┊help
17mo ago
save component livewire form
FilamentFFilament / ❓┊help
17mo ago