F
Filament4mo ago
Cushty

form state on refesh or navigate away

Hi I know it's possible but cant find it in the docs, how can I set the form fields to save (maybe in local storage) if a user comes off the page or does not submit, the fields are still filled in? Thanks
1 Reply
Dennis Koch
Dennis Koch4mo ago
You could try to add a JS listener on every field in the form and store the data to localStorage on change and restore it on load. But I think filling might not work with Livewire. Not sure whether it will also fill the Livewire state. Not an easy problem
Want results from more Discord servers?
Add your server