> For the complete documentation index, see [llms.txt](https://jarvelov.gitbook.io/vue-form-json-schema/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jarvelov.gitbook.io/vue-form-json-schema/api/vue-form-json-schema/ui-schema/field/error-options.md).

# errorOptions

Same API as [fieldOptions](/vue-form-json-schema/api/vue-form-json-schema/ui-schema/field/field-options.md) but is only applied when the field has errors and has been modified.

## Example

```javascript
data() {
  return {
    uiSchema: [{
      component: 'input',
      model: 'input1',
      errorOptions: {
        class: ['is-invalid']
      },
      fieldOptions: {
        class: ['form-control'],
        on: ['input']
      }
    }]
  }
}
```
