# Field Validators

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="/files/NnszwP9nZwxrqgtolYPg" alt=""><figcaption></figcaption></figure>

* The Custom Field Validator form appears

<figure><img src="/files/n0ZVvrA1shgXlbi0tswx" 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="/files/ofP5p84J4905UTc6pXHi" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://admin-docs.onestop.site/managing-services/managing-forms/using-the-form-builder/field-validators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
