# QFieldSelections

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

### Class

QFieldSelections()

Selection state for a field.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 2.2 |

## Properties

### fieldName

Type: String

The field name.

### qSortIndex

Type: Number

Sort index. Starting from 0.

### field

Type: [Field](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/qlik-field-interface.htm)

Reference to the field.

### locked

Type: Boolean

Defines if the field is locked.

### isNumeric

Type: Boolean

Defines if the field is numeric.

### totalCount

Type: Number

Total number of values in the field.

### selectedCount

Type: Number

Number of selected values.

### qSelectionThreshold

Type: Number

Number of values that will be listed.

### qStateCounts

Type: Object

Object with number of values in different states.

### qSelected

Type: String

Concatenated string of selected values if number of values are less than the threshold, or if the string is of format "7 of 123".

### selectedValues

Type: Array

Array with maximum of qSelectionThreshold values that are selected. For each value, the text plus the selection mode (NORMAL/AND/NOT).

### notSelectedValues

Type: Array

Array with maximum of qSelectionThreshold values that are not selected. For each value, the text plus the selection mode (NORMAL/AND/NOT).

## Learn more

* [Field API](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/qlik-field-interface.htm)