setValue(value)

Name Type Description
value string, number, or object, depending on the data type of the field Varies depending on the data type of the field

Usage:

    // when the editor value changes, set the changed value
    // to the field
    inputField.addEventListener('change', function(e) {
      field.setValue(inputField.value);
    });