title: Persistent Dashboard Widget Preferences
body: <p>I'm building a Dashboard Widget and I'm attempting to store preferences that persist across "sessions" (i.e., a user closing the widget and opening it again).</p>
  
  <p>I've tried:</p>
  
  <pre><code>function setEmail(event)
  {
  var preferenceKey = "email";
  var preferenceValue = $F("email");
  widget.setPreferenceForKey(preferenceValue, preferenceKey);
  }
  
  function getEmail() {
  var preferenceForKey = "email";
  preferenceForKey = widget.preferenceForKey(preferenceForKey);
  return preferenceForKey;
  }
  </code></pre>
  
  <p>This works fine for the current session, but if the widget is closed and opened again, the data is lost.</p>
  
  <p>Thanks!</p>