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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | gadget_createRadioGroup(label, options, defaultValue[, isRequired, fieldDescription]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Creates a radio group.

Creates a radio group.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Label of the field. |
| options | String [] | Yes | List of selectable options. |
| defaultValue | String | Yes | Default value (one of the options provided) or an empty string. |
| isRequired | Boolean | No | Specifies if the field is should be marked as required with a dark red asterisk. Note that marking the field as required does not add any validation. |
| fieldDescription | String | No | Description of the field to be displayed immediately under the input box. |

## Return Type

**String []**

The returned value has no meaning

## Example

```
gadget_createRadioGroup("Simple Radiogroup", {"A", "B", "C"}, "Not required");
gadget_createRadioGroup("Radiogroup 2", {"12", "13", "14", "15","16"}, {"13"}, true, "Required Radio Group");
```

## See also

> Macro (contentbylabel)

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