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

# HASEMPTYTEXT

> The HASEMPTYTEXT function checks whether user input, file content, or a subform contains an empty string. It is supported in multiple YiDA scenarios, such as form validation and workflow design.

The **HASEMPTYTEXT** function checks whether user input, file content, or a subform contains an empty string.

## Supported Product Scenarios

The HASEMPTYTEXT function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (subform 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"}}
HASEMPTYTEXT(value1)
```

## Attributes

| **Attribute** | **Required** | **Description**                                 |
| ------------- | ------------ | ----------------------------------------------- |
| value1        | Yes          | The text box, file, or subform column to check. |

## Return Value

| **Return type** | **Description**                                                                                                                              |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| boolean         | Whether an empty string is contained. Values:<br />• **true**: an empty string is contained.<br />• **false**: no empty string is contained. |

## Example

The following example shows how the `HASEMPTYTEXT()` function determines whether the input box is empty.

## Try It Out

Try the `HASEMPTYTEXT()` function in the example below.
