How to autosave a form

  1. You have a form on your page.
  2. A member/user fills this form.
  3. On every change of the form you save the entered DATA into the local-storage.
  4. User is now able to leave the page and when the user comes back and opens the page again, you load data to every single form-field back again from local-storage.

You will need this 3 CODE-LINES to code it…

import {local} from 'wix-storage';

local.setItem("key", "value");

let value = local.getItem("key");