# field method

Information note**STABLE.**   
  
This API is reliable and breaking changes are unlikely.

qlik.app.field(fld, statename)

Gets a field reference with methods that can be used to manipulate the field, see [Field API](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/qlik-field-interface.htm).

## Version history

Version history

| Version history | Details |
| --- | --- |
| Introduced | 1.0 |

## Parameters

### fld

Type: String

Name of the field.

### statename

Type: String

Optional.

Alternate state name.

Default is $.

## Returns

A [QField](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/QField.htm) object with methods and properties that can be used to manipulate the field.

## Example

```
var lastNameField = app.field('LastName');
lastNameField.clear();
```