Default data

Felte will take as default values whatever is set first in the HTML as a value/checked attribute (if the input is "controlled" by Felte).

    <input name="email" type="email" value="">

In this case, Felte will take as a default value for the "email" field.

An alternative to this would be to use the initialValues property of the configuration for prepareForm (or the element itself). This can also be useful if the form element is not controlled by Felte and you're binding directly to the data store.

prepareForm('felte-form-id', {
  /* ... */
  initialValues: {
    account: {
      email: '',
  /* ... */