# GetField method

Returns a handle to a field.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qFieldName | Name of the field. | Yes | String |
| qStateName | Name of the alternate state.<br>Default state is current selections. | No | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qReturn | Handle to the field | [ObjectInterface](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-objectinterface.htm) |