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


 


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | BA_createMultiSelectList(label, options, defaultValues, isDisabled[, isRequired, fieldDescription]) | **Package** | poweraction |
| **Alias** | form_createMultiSelectList | **Pkg Usage** | createMultiSelectList(label, options, defaultValues, isDisabled[, isRequired, fieldDescription]) |

## Description

> Macro (excerpt)
> 
> Creates a multi select list.

Creates a multi select list.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Field label. |
| options | String [] | Yes | A sub-list of the provided options or an empty array. |
| defaultValue | String [] | Yes | A sub-list of the provided options or an empty array. |
| 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_createMultiSelectList("msel 1", {"option 1", "option 2", "option 3"}, {"option 1", "option 3"}, true, false, "select some options");
BA_createMultiSelectList("msel 2", {"option 1", "option 2", "option 3"}, "", false, true, "select some options");
```

![Power Scripts for Jira Cloud multiselect list form element](media://ce93c577-5676-43a0-a9b7-535c0a40b651)

## See also

> Macro (contentbylabel)