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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | gadget_getMultiValues(argv, label) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Retrieves the value from a multi select list or a checkbox group.

Retrieves the value from a multi select list or a checkbox group.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| argv | String [] | Yes | The argv variable |
| label | String | Yes | The label of the multi select list/checkbox group |

## Return Type

**String []**

## Example

For a script that creates a multi select list like the following

```
gadget_createMultiSelectList("Multiselect", {"a", "b", "c", "d", "e"}, {"a", "c", "e"}, true, "This field is required");
```

The selected values may be obtained with the **gadget_getMultiValues** function:

```
string[] res = gadget_getMultiValues(argv, "Multiselect");
//res[0] = a
//res[1] = c
//res[2] = e
//The function has returned in this case an array of three strings, "a", "c" and "e".
```

## See also

> Macro (contentbylabel)

> Macro (fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macro)