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


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

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

## Description

> Macro (excerpt)
> 
> Retrieves the value from a text, text area, select list or radio group.

Retrieves the value from a text, text area, select list or radio group.

## Parameters

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

## Return Type

**String**

## Example

For any field that may contain only a single string type value we may use the **gadget_getSingleValue **function. For the following script

```
gadget_createInput("Enter keyword", "demo");
```

We may obtain the field's value as in the next code sample:

```
string res = gadget_getSingleValue(argv, "Enter keyword");
//res = demo
```

## See also

> Macro (contentbylabel)

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