---
title: buttonWidgetStateString
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/buttonwidgetstatestring
---

# buttonWidgetStateString

A string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

## Declaration

```swift
var buttonWidgetStateString: String { get set }
```

## Mentioned in

Adding Widgets to a PDF Document

## Discussion

Discussion The default value is Yes. To group button widgets, set the same fieldName on the button widgets. The buttonWidgetStateString property allows you to identify individual button widgets in that group.

## See Also

### Configuring Button Widget Annotations

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