# BaseField<TValueType>.ValidateValueHandler

> Represents a method that validates or adjusts a field's value before committing it.

## Definition

* **Type:** Delegate
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public delegate TValueType BaseField<TValueType>.ValidateValueHandler(TValueType value)
```

## Remarks

Use this delegate to modify or validate a value before committing it. For example, you can clamp, sanitize, or replace the input value to match specific constraints.
