# FieldValidatorContext (@salmonui/inputs/form)

> The FieldValidatorContext interface of @salmonui/inputs/form: Context of a form field's custom validators (@salmonui/inputs/form Field). It is passed as both the row and the ctx argument, so validate(value, { formData }) reads other fields.

Canonical: https://salmonui.dev/docs/reference/inputs/form/FieldValidatorContext

```ts
import type { FieldValidatorContext } from '@salmonui/inputs/form';
```

Entry index: https://salmonui.dev/docs/reference/inputs/form (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/form.md).

## Reference

Kind: interface

```ts
interface FieldValidatorContext {
    readonly name: string;
    readonly formData: FormDataLike | null;
    readonly isNew: false;
}
```

Context of a form field's custom validators (`@salmonui/inputs/form` `Field`). It is passed as both the `row` and the
`ctx` argument, so `validate(value, { formData })` reads other fields.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  | The field's `name` (`''` without one). |
| `formData` | `readonly formData: FormDataLike \| null;` |  | The owning form's data at validation time; `null` outside a form. |
| `isNew` | `readonly isNew: false;` |  |  |
