---
title: "BA_createSingleCheckbox"
canonical: "https://support.appfire.com/space/PSJC/1839235820/BA_createSingleCheckbox"
format: markdown
---
> Macro (aura-html)


 


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | BA_createSingleCheckbox(label, isChecked, isDisabled[, isRequired, fieldDescription]) | **Package** | poweraction |
| **Alias** | form_createSingleCheckbox | **Pkg Usage** | createSingleCheckbox(label, isChecked, isDisabled[, isRequired, fieldDescription]) |

## Description

> Macro (excerpt)
> 
> Creates a single checkbox.

Creates a single checkbox.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Field label. |
| isChecked | Boolean | Yes | Is the check box checked by default, true or false. |
| isDisabled | Boolean | No | 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. |
| 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

```javascript
BA_createSingleCheckbox("cbx 1", false, false, false, "description for checkbox 1");
BA_createSingleCheckbox("cbx 2", true, false, false, "description for checkbox 2");
BA_createSingleCheckbox("cbx 3", true, true, false, "description for checkbox 3");
```

![Power Scripts for Jira Cloud checkbox form component](media://87abacbe-bc9c-470d-b77d-114c8f0c4488)

## See also

> Macro (contentbylabel)