---
title: useFormChild composable
related:
  - title: Form
    path: ../vue-components/form.md
---
This composable refers to [QForm](../vue-components/form.md) wrapping your own custom component which you want to communicate with.

## Syntax

```js
import { useFormChild } from 'quasar'

setup () {
  // function validate () { ... }
  // function resetValidation () { ... }

  useFormChild({
    validate, // Function; Can be async;
              // Should return a Boolean (or a Promise resolving to a Boolean)
    resetValidation,    // Optional function which resets validation
    requiresQForm: true // should it error out if no parent QForm is found?
  })
}
```
