# OneAndOnlyOne Property

## Overloads

| [OneAndOnlyOne](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxFieldProperties.OneAndOnlyOne.htm#Qlik_Engine_NxFieldProperties_OneAndOnlyOne) |  | This parameter is set to true, if the field has one and only one selection (not 0 and not more than 1).<br><br>If this property is set to true, the field cannot be cleared anymore and no more selections can be performed in that field.<br><br>&lt;div class=note&gt;The property `OneAndOnlyOne` can be set to true if one and only value has been selected in the field prior to setting the property. &lt;/div&gt;<br><br>JSON property name: qOneAndOnlyOne |
| --- | --- | --- |

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

## OneAndOnlyOne

This parameter is set to true, if the field has one and only one selection (not 0 and not more than 1).

If this property is set to true, the field cannot be cleared anymore and no more selections can be performed in that field.

&lt;div class=note&gt;The property `OneAndOnlyOne` can be set to true if one and only value has been selected in the field prior to setting the property. &lt;/div&gt;

JSON property name: qOneAndOnlyOne

### Declaration

```

          public bool OneAndOnlyOne { get; set; }
    
  
```

### Property Value

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

### Implements

[INxFieldProperties.OneAndOnlyOne](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.INxFieldProperties.OneAndOnlyOne.htm#Qlik_Engine_INxFieldProperties_OneAndOnlyOne)