---
title: "BA_createTextArea"
canonical: "https://support.appfire.com/space/PSJ/15488573/BA_createTextArea"
format: markdown
---
> Macro (aura-html)


> 📝 The use of this function requires the Power Actions add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | BA_createTextArea(label, defaultValue, isDisabled [, rows[, isRequired, fieldDescription]]) | **Package** | poweraction |
| **Alias** |  | **Pkg Usage** | createTextArea(label, defaultValue, isDisabled [, rows[, isRequired, fieldDescription]]) |

## Description

> Macro (excerpt)
> 
> Creates a text area suitable for longer text values like comments.

Creates a text area suitable for longer text values like comments.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Field label. |
| defaultValue | String | Yes | Specifies a default value for the text area. |
| isDisabled | Boolean | No | Specifies whether the field is read-only or no. |
| rows | Number | No | The initial height of the text area (defaults to 5). Certain browsers allow resizing. |
| isRequired | Boolean | No | Specifies whether the field should be marked as required with a dark red asterisk.<br>Please note that marking a field as required does not perform any validation in Jira 9. However, in Jira 10, this has been improved, and the fields are now properly validated. |
| fieldDescription | String | No | A description of the field to be displayed immediately under the input box. |

## Return Type

**None**

The returned value has no meaning

## Example

```
BA_createTextArea("text 1", "", false , 5, false, "description 1");
BA_createTextArea("text 2", "mini textarea", false , 2, false, "description 2");
BA_createTextArea("text 3", "maxi textarea", true , 10, false, "description 3");
```

![image](media://0abab91d-9ccf-4cd6-9107-c103ee3d90cb)

## See also

> Macro (contentbylabel)