F
Filament•2mo ago
frame

Persist form inputs to query string

You can persist the current step of a wizard (https://filamentphp.com/docs/3.x/forms/layout/wizard#persisting-the-current-step-in-the-urls-query-string) but how would you also persist the already input data to the query string so redirects/refresh etc. would work without losing the data? 🤔
Solution:
You can’t… that would involve storing the data in state for each change. You can set the data in session and fill the form if session data exists. You can also enable disabling leaving page without saving changes in the panel too...
Jump to solution
3 Replies
Solution
toeknee
toeknee•2mo ago
You can’t… that would involve storing the data in state for each change. You can set the data in session and fill the form if session data exists. You can also enable disabling leaving page without saving changes in the panel too
frame
frameOP•2mo ago
Any idea what persisting the wizard step is used for? 🤔
toeknee
toeknee•2mo ago
It’s less for persisting but more starting on X step. Handy if they have completed part the form and want to finish it.

Did you find this page helpful?