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


## 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.

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

## 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

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

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

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

## See also

> Macro (contentbylabel)