> For the complete documentation index, see [llms.txt](https://vue-generators.gitbook.io/vue-generators/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vue-generators.gitbook.io/vue-generators/validation/validation-events.md).

# Handling Validation Events

The `vue-form-generator` component emits a validated event, if validation is executed.

The event parameters are: `isValid: boolean, errors: Array`.

## Example:

You can create a method to handle this event and bind it like this:

```markup
<vue-form-generator @validated="onValidated" />
```

```javascript
methods: {
  onValidated(isValid, errors) {
   console.log("Validation result: ", isValid, ", Errors:", errors);
  }
}
```
