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:Jump to 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...
3 Replies
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
Any idea what persisting the wizard step is used for? 🤔
It’s less for persisting but more starting on X step. Handy if they have completed part the form and want to finish it.