> For the complete documentation index, see [llms.txt](https://admin-docs.onestop.site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://admin-docs.onestop.site/managing-services/managing-forms/using-the-form-builder/field-validators.md).

# Field Validators

Field validators are used to enable validation of field values entered by users against your own datasets.

Field validators allow you to configure custom validation in a form where input entered by users for that form is validated against your own datasets.

Field validators require you to have an existing [dataset](/databanks/creating-datasets.md) to validate values against.

To create a field validator:

* Go to the form builder and click on the [settings icon](/managing-services/managing-forms/using-the-form-builder.md#field-settings) for the field you want to edit.
* Click on the validation settings tab.
* Click on the "Add Custom Validator" button

<figure><img src="https://3247139528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tGxO0O4EK3NOayFEcfk%2Fuploads%2FokWaVjVj96adO2mXl73g%2Fimage.png?alt=media&amp;token=14ba2be7-81e5-45de-9414-e31c74f40cb5" alt=""><figcaption></figcaption></figure>

* The Custom Field Validator form appears

<figure><img src="https://3247139528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tGxO0O4EK3NOayFEcfk%2Fuploads%2FEjmuSqp6UfbVU4SDfzkS%2Fimage.png?alt=media&amp;token=d1b3f858-3021-4448-8d03-4630744bbb9b" alt=""><figcaption></figcaption></figure>

* Provide a name for the validator
* Create or select a [dataset connection](/databanks/using-datasets.md#read-dataset-connection)
* Choose a lookup column for the validator. The lookup column is the field in the dataset that the form field value will be compared against.

<figure><img src="https://3247139528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tGxO0O4EK3NOayFEcfk%2Fuploads%2F5DR5ltlHx1empKrj7mM0%2Fimage.png?alt=media&amp;token=c061c8ab-a62f-4c02-9d04-745352e22656" alt=""><figcaption></figcaption></figure>

* Provide a custom error message to be displayed to the user when the validation fails.
* Click on the save button.
* You can add as many validators as you require. This ensures you can validate that a user provided value on the form is present in multiple datasets.
