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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getCustomField(customfieldId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets all information about the custom field. Function returns a JCustomField structure type.

Gets all information about the custom field. Function returns a JCustomField structure type.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| customfieldId | string | Yes | Id of the custom field to retrieve information for. |

## Return Type

**[JCustomField](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487117)**

## Example

```
JCustomField field = getCustomField("customfield_12345");

runnerLog(field.id);
runnerLog(field.name);
runnerLog(field.description);
runnerLog(field.type);
```

## See also

> Macro (contentbylabel)