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

# ARRAYREPEATED

> The ARRAYREPEATED function checks whether values of Components within a subform are duplicated. It is supported in YiDA Form validation and in validation rules for workflow design. The function detects duplicate values in a specified Field and returns a boolean result.

The **ARRAYREPEATED** function checks whether values of Components within a subform are duplicated. It only supports Fields within a subform.

## Supported Product Scenarios

ARRAYREPEATED is supported in the following YiDA scenarios:

* Form (validation)
* Workflow design (validation rules)

## Format

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

## Attribute Description

| **Attribute** | **Required** | **Description**                                                                                                    |
| ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------ |
| field         | Yes          | The Component Field within the subform.<br />The final input parameter format looks like this: `["11","11","11"]`. |

## Return Value

| **Return value Type** | **Description**                                                                                                       |
| --------------------- | --------------------------------------------------------------------------------------------------------------------- |
| boolean               | Whether duplicate Fields exist:<br />• **true**: Duplicate values exist.<br />• **false**: No duplicate values exist. |

## Usage Example

As shown in the figure below, use `ARRAYREPEATED()` to check whether a Column in a subform contains duplicate values.

## Try It Out

Use the ARRAYREPEATED function to check whether an array contains duplicate values.
