4

Currently on common HTML forms, all the fields are cleared when you refresh the page or navigate away and back to it. Would it be good or bad UX to store values in cookies as you type and restore them again on page load? Obviously not passwords.

1
  • 1
    This is fairly broad, the answer would highly depend on the context. Depending on the type of data you are collecting, having it persist without a login associated with it could either delight or terrify your user. Is there a specific context you have in mind? Commented Mar 28, 2014 at 22:53

1 Answer 1

3

I think fundamentally yes.

Firefox have started doing this as part of their basic functionality (citation needed), however, as site owner you can be cleverer, remembering things like marked map points, or bespoke, site specific field selections.

The problem is that when a a form is served it can only be populated with data that the server knows about, coming from a session or database. This is a snapshot from the past.

This leaves the client in a similar situation to anyone editing anything on a computer when something interupts them, like a powercut, and work can be lost. All effort should be made to save this work, in any context.

This sort of functionality is very similar to automatic save, which is implemented by our very own SE in a web context, but has been a stalwart of well built desktop software for years. You should make attempts to copy this behaviour as it brings the web inline with an established UX pattern in computing software.

Nothing a user enters should be lost if it can be helped.

PS - I would look into local storage instead of cookies, it's supported by 99% of clients and is much more flexible, there's a lot more space (more than 4k) and it's more persitent:

http://diveintohtml5.info/storage.html

1
  • This is the answer / response I was looking for. Thank you Commented Mar 29, 2014 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.