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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getFieldOptions(projectKey, issueType, fieldName [, hideDisabledOptions]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns a string array representing the list of options for a custom field.

Returns a string array representing the list of options for a custom field. This function only handles custom fields of the following types: single select, multi select, radio buttons and checkboxes, otherwise throws an exception.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| project key | String | Yes | Key of the selected project. |
| issue type | String | Yes | Type of the selected issue. |
| field name | String | Yes | Name of the selected field. |
| hideDisabledOptions | Boolean | No | Flag to be set when searching for just the active options. |

## Return Type

**String[]**

The returned string array represents the list of options for a custom field.

## Example

```
getFieldOptions("DEMO", "Bug", "RB - BUG");
```

Gets the options for a custom field named "RB - BUG ", that exists in the project with the key "DEMO " and has its issue type "BUG ".

## See also

> Macro (contentbylabel)