← Tasks

Persist form data between page refreshes

From this thread:

I had just written a long feedback in the other thread. Then I accidentally refreshed the page and lost all that I’ve written 😅 I guess we could rely on localStorage to prevent that.

That might be an issue if not implemented carefully on ‘edit’ pages, because maybe users will refresh their page exactly to discard the changes. But it should be more straightforward to implement for ‘new’ actions, as we’d only have to store keys such as “new-thread-title” and “new-thread-content” and then discard the entry once the form is submit.

T
tyro 1 year ago

This comment seems to suggest we can use autocomplete="on" for this. It doesn’t feel right, but I’ll give it a try.

https://stackoverflow.com/questions/14420624/how-to-keep-changed-form-content-when-leaving-and-going-back-to-https-page-wor

Status
Todo
Assignee Not set
Due Not set
Following
No one
Follow You're not tracking this item.