# select method

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

qlik.app.field.select(Array, toggle, softlock)

Selects field values using indexes.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 1.0 |

## Parameters

### Array

Type: Array

Array of index values to select

### toggle

Type: Boolean

Set to true to keep any selections present in the list object.

If set to false, selections made before accepting the list object search become alternative.

This parameter is mandatory.

### 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', config);
	app.field('LastName').select([0, 1, 2], true, true);
```