# select method

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

select(toggle, softlock)

Selects a field value.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 2.1 |

## Parameters

### toggle

Type: Boolean

Optional.

If true, toggle selected state.

### softlock

Type: Boolean

Optional.

If true, locked selections can be overridden.

## Returns

A promise.

Tip noteFor more information regarding a promise, see [The Promise API](https://code.angularjs.org/1.5.8/docs/api/ng/service/$q#the-promise-api).

## Example

```
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
  var field = app.field('LastName');
  field.getData();
  //after data is loaded fieldvalues will be in rows array
  field.rows[0].select();
```