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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | BA_createInput(label, defaultValue, isDisabled[, isRequired, fieldDescription]) | **Package** | poweraction |
| **Alias** |  | **Pkg Usage** | createInput(label, defaultValue, isDisabled[, isRequired, fieldDescription]) |

## Description

> Macro (excerpt)
> 
> Creates a simple text input suitable for short values. For longer text values like comments, see BA_createTextArea.

Creates a simple text input suitable for short values. For longer text values like comments, see BA_createTextArea.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Field label. |
| defaultValue | String | Yes | A default value or an empty string. |
| isDisabled | Boolean | Yes | Specifies whether the field is read-only or no. |
| 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_createInput("input 1", "", false, false, "description of field 1");
BA_createInput("input 2", "default value for field 2", false, false, "description of field 2");
BA_createInput("input 3", "read-only default value for field 3", true, false, "description of field 3");
```

![image](media://ac7017e0-7c93-4bd0-8223-c57232773d95)

## See also

> Macro (contentbylabel)