Fired from the field when its input is being manipulated. This can be useful for hiding the feedback while the user is typing into the field. This event is also fired when an error is returned by the API.

field.addEventListener('nb:clear', function(e) {
    // Get the ID for this field
    var id = e.detail.id;
  
    // Check for an API error
    if (e.detail.result && e.detail.result.isError()) {
        // Get error message
    	  var error = e.detail.error;
    }
});