> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LEN

> The LEN function returns the number of characters in a text string. It is available across multiple YiDA scenarios, including forms, workflow design, and integration & automation. Pass a text value as the argument to get a number representing the character count.

The **LEN** function returns the number of characters in a text string.

## Supported Scenarios

The LEN function is available in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
LEN(text)
```

## Arguments

| **Attribute** | **Required** | **Description**   |
| ------------- | ------------ | ----------------- |
| text          | Yes          | The text content. |

## Return Value

| **Return type** | **Description**                       |
| --------------- | ------------------------------------- |
| Number          | The number of characters in the text. |

## Example

The formula in the figure below returns `5`.

## Try It Out

Returns the number of characters in a **single-line text** component.
