---
title: allowsToggleToOff
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/allowstoggletooff
---

# allowsToggleToOff

A Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

## Declaration

```swift
var allowsToggleToOff: Bool { get set }
```

## Discussion

Discussion To implement a group of radio buttons where at least one option must remain in a selected state, set allowsToggleToOff to false on each button in the group.

## See Also

### Configuring Button Widget Annotations

- [widgetControlType](pdfkit/pdfannotation/widgetcontroltype.md)
- [buttonWidgetState](pdfkit/pdfannotation/buttonwidgetstate.md)
- [PDFWidgetCellState](pdfkit/pdfwidgetcellstate.md)
- [buttonWidgetStateString](pdfkit/pdfannotation/buttonwidgetstatestring.md)
- [caption](pdfkit/pdfannotation/caption.md)
- [radiosInUnison](pdfkit/pdfannotation/radiosinunison.md)
