---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-input-validator-expression.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-input-validator-expression.md
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-input-validator-expression
[Calculated expression](https://divkit.tech/docs/en/concepts/expressions.md) validator.

## Parameters
| Parameters | Description |
| --- | --- |
| `condition` | <p>**bool_int**</p><p>Required parameter.</p><p>[Calculated expression](../../expressions) used as a value validity condition.</p><p>Available platforms: Android, iOS, web.</p> |
| `label_id` | <p>**string**</p><p>Required parameter.</p><p>ID of the text element containing the error message. The message will also be used for providing access.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `expression`.</p><p>Available platforms: Android, iOS, web.</p> |
| `variable` | <p>**string**</p><p>Required parameter.</p><p>The name of the variable that stores the calculation results.</p><p>Available platforms: Android, iOS, web.</p> |
| `allow_empty` | <p>**bool_int**</p><p>Determines whether the empty field value is valid.</p><p>Default value: `false`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "expression",
  allow_empty: "bool_int",
  condition*: "bool_int",
  label_id*: "string",
  variable*: "string"
}
```
</details>
