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

# RIGHT

> The RIGHT function returns a specified number of characters from the end of a text string. It is supported across various YiDA scenarios such as forms and workflow design. By providing the text and the number of characters as parameters, you can efficiently extract the rightmost portion of a text string.

The **RIGHT** function returns a specified number of characters from the end of a text string. If the text length is shorter than the specified number of characters, the original text is returned.

## Supported Product Scenarios

The RIGHT function is supported in the following YiDA scenarios:

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

## Syntax

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

## Parameters

| **Parameter** | **Required** | **Description**                                                                                                                  |
| ------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| text          | Yes          | The text from which to extract the rightmost characters.                                                                         |
| num\_chars    | Yes          | The number of characters to extract. If this value exceeds the total character count of the text, the original text is returned. |

## Return Value

| Parameter | Description                                                  |
| --------- | ------------------------------------------------------------ |
| text      | The specified number of characters extracted from the right. |

## Example

The formula in the following example returns: `低代码`.

## Try It Out

Return the last three characters of the **Single-line text** component value.
