import DocPage from '@docs/doc-page';
import CodeExample from '@docs/code-example';

<DocPage>

# Record level validation

*(values) => object | new Promise: Object*

This form of validation enables you to create validation function for whole form. It is useful for some cross validation between multiple fields etc.
Detailed information can be found [here](https://final-form.org/docs/react-final-form/examples/record-level-validation).

## Example

<CodeExample mode="preview" source="components/validators/record-level-validation" />

</DocPage>
