# ValidationType

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ValidationType/

Validation types.

- **Full name:** `MFiles.ValidationType`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-VALIDATION_TYPE_NONE"></a>`VALIDATION_TYPE_NONE` | 0 | No validation. |
| <a id="v-VALIDATION_TYPE_REGEX"></a>`VALIDATION_TYPE_REGEX` | 1 | A regular expression string, e.g. for validating a phone number. |
| <a id="v-VALIDATION_TYPE_CODE"></a>`VALIDATION_TYPE_CODE` | 2 | A VBScript for performing the validation. |

<a id="used-in-fields"></a>

## Used in fields

- [`PropertyDef.validation_type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDef/index.md#f-validation_type): How values are validated; `validation_string` holds the rule.
