# ToggleSelect method

Toggle selects field values matching a search string.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qMatch | String to search for.<br>Can contain wild cards or numeric search criteria. | Yes | String |
| qSoftLock | Set to true to ignore locks; in that case, locked fields can be selected.<br>The default value is false. | No | Boolean |
| qExcludedValuesMode | Include excluded values in search. | No | Integer |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qReturn | true/false<br><br>Information noteThe operation is successful if qReturn is set to true. | Boolean |

## See also

[Toggle select values of a field](https://help.qlik.com/en-US/sense-developer/May2026/csh/engineapi/toggle-select-values-of-a-field)