# Text

## Specification

### tags

* Type: `String`
* Specifies how to treat HTML tags.

Allowed values:

<table><thead><tr><th width="193.5555419921875" valign="top">Value</th><th valign="top">Specification</th></tr></thead><tbody><tr><td valign="top"><strong>strip</strong></td><td valign="top">Removes HTML tags.</td></tr><tr><td valign="top"><strong>stripall</strong></td><td valign="top">Removes all HTML tags (including unclosed).</td></tr><tr><td valign="top"><strong>escape</strong></td><td valign="top">Converts <code>&#x3C;</code> , <code>></code> and <code>&#x26;</code> to HTML entities.</td></tr></tbody></table>

### validate

* Type: `Object`
* Specifies parameter validation.

Available parameters:

<table><thead><tr><th width="139.5555419921875" valign="top">Parameter</th><th width="126.4444580078125" valign="top">Type</th><th valign="top">Specification</th></tr></thead><tbody><tr><td valign="top"><strong>max</strong></td><td valign="top">number</td><td valign="top">Specifies the maximum length.</td></tr><tr><td valign="top"><strong>min</strong></td><td valign="top">nNumber</td><td valign="top">Specifies the minimum length.</td></tr><tr><td valign="top"><strong>pattern</strong></td><td valign="top">string</td><td valign="top"><p>Specifies a RegExp pattern that a text parameter should conform to.</p><p>In most cases, the pattern has to be wrapped in <code>^</code> and <code>$</code> e.g. <code>^[a-z]+$</code> in order to validate the whole input, not just a part.</p></td></tr></tbody></table>

### nested

Available types:

<table><thead><tr><th width="126.77777099609375" valign="top">Type</th><th valign="top">Specification</th></tr></thead><tbody><tr><td valign="top"><strong>array</strong></td><td valign="top">Provides an array of nested parameters that are shown when the value of the parameter is set (value is not empty).</td></tr><tr><td valign="top"><strong>string</strong></td><td valign="top">Provides the URL address of an RPC to load a list of nested parameters.</td></tr><tr><td valign="top"><strong>object</strong></td><td valign="top">Provides a detailed specification of nested parameters.</td></tr></tbody></table>

{% tabs %}
{% tab title="Use of nested fields" %}

```javascript
{
    "name": "myText",
    "type": "text",
    "label": "My Text",
    "nested": "rpc://getNestedFields"
}
```

{% endtab %}
{% endtabs %}

## Examples

### Basic text field

A basic text input.

{% tabs %}
{% tab title="Appearance" %}

<div align="left"><figure><img src="/files/JXkwKhKQ3azTL4x49kOB" alt="" width="543"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Source" %}

```json
[
	{
		"type": "text",
		"label": "Name",
		"name": "name"
	}
]
```

{% endtab %}
{% endtabs %}

### Strip HTML tags

Enable HTML tags stripping or escaping using the `tags` option.

{% tabs %}
{% tab title="Appearance" %}

<div align="left"><figure><img src="/files/OOF3iU7yb2EO9Fdx4ofG" alt="" width="543"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Source" %}

```json
[
	{
		"type": "text",
		"label": "Stripped field",
		"name": "stripped",
		"tags": "strip"
	},
	{
		"type": "text",
		"label": "Escaped field",
		"name": "escaped",
		"tags": "escape"
	}
]
```

{% endtab %}

{% tab title="Output" %}
**Stripped field**

```
Hello world
```

**Escaped field**

```
&lt;h1&gt;Hello world&lt;/h1&gt;
```

{% endtab %}
{% endtabs %}

### Validate length

Control the length of the inserted string value by setting `validate.max` and `validate.min` .

{% tabs %}
{% tab title="Appearance" %}

<div align="left"><figure><img src="/files/ayH41ArgjbKeOD1w8NDc" alt="" width="543"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Source" %}

```json
[
	{
		"type": "text",
		"label": "Validated string",
		"name": "validated",
		"validate": {
			"max": 32,
			"min": 10
		}
	}
]
```

{% endtab %}
{% endtabs %}

### Validate pattern

Use a regular expression to validate the text input.

{% tabs %}
{% tab title="Appearance" %}

<div align="left"><figure><img src="/files/0XPeKe6iF9eUkrjoO6p5" alt="" width="543"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Source" %}

```json
[
	{
		"type": "text",
		"label": "Validated string",
		"name": "validated",
		"validate": {
			"pattern": "^[A-Z ]+$"
		}
	}
]
```

{% endtab %}
{% endtabs %}

### Search button

Add an [RPC button](/custom-apps-documentation/app-components/rpcs/dynamic-fields-rpc.md) (also called as a search button) to perform an RPC call inside the field. Usually used to find an ID of a specific item.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.make.com/custom-apps-documentation/block-elements/parameters/text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
