# ToggleSelect Method

## Overloads

| [ToggleSelect(String, Boolean, Int32)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IField.ToggleSelect.htm#Qlik_Engine_IField_ToggleSelect_System_String_System_Boolean_System_Int32_) |  | Toggle selects field values matching a search string. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IField.ToggleSelect.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IField.ToggleSelect.htm)

## ToggleSelect(String, Boolean, Int32)

Toggle selects field values matching a search string.

### Declaration

```

          bool ToggleSelect([QixName("qMatch")] string match, [QixName("qSoftLock")] bool softLock = false, [QixName("qExcludedValuesMode")] int excludedValuesMode = 0)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | match | String to search for.<br>Can contain wild cards or numeric search criteria. |
| System.Boolean | softLock | Set to true to ignore locks; in that case, locked fields can be selected.<br>The default value is false. |
| System.Int32 | excludedValuesMode | Include excluded values in search. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Remarks

The operation is successful if qReturn is set to true.