> ## 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.

# MID

> The MID function extracts a specified number of characters from a target text, starting at a given position. It is available across multiple YiDA scenarios, including Form and workflow design. Provide the source text, start index, and length to retrieve a specific portion of the text.

The **MID** function extracts a specified number of characters from a target text, starting at a given position.

## Supported Product Scenarios

The MID 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"}}
MID("text",start_index,length)
```

## Attributes

| **Attribute** | **Required** | **Description**                                         |
| ------------- | ------------ | ------------------------------------------------------- |
| text          | Yes          | The source text to extract from.                        |
| start\_index  | Yes          | The starting position for extraction. Must be a number. |
| length        | Yes          | The number of characters to extract. Must be a number.  |

## Return Value

| **Return type** | **Description**             |
| --------------- | --------------------------- |
| Text            | The extracted text content. |

## Example

The formula in the image below returns: `low-code`.

## Try It

Extract a valid portion of the text.
