---
title: widgetDefaultStringValue
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/widgetdefaultstringvalue
---

# widgetDefaultStringValue

The string value that the widget reverts to when performing a reset form action.

## Declaration

```swift
var widgetDefaultStringValue: String? { get set }
```

## Discussion

Discussion For text and choice widgets, this property specifies the string value that a reset form action sets on a widget. For radio buttons and checkboxes, set this property to Off if the desired default is for the button to be in an unselected state; otherwise, set it to the buttonWidgetStateString.

## See Also

### Configuring Widget Annotations

- [widgetFieldType](pdfkit/pdfannotation/widgetfieldtype.md)
- [widgetStringValue](pdfkit/pdfannotation/widgetstringvalue.md)
- [fieldName](pdfkit/pdfannotation/fieldname.md)
- [backgroundColor](pdfkit/pdfannotation/backgroundcolor.md)
- [isReadOnly](pdfkit/pdfannotation/isreadonly.md)
- [PDFWidgetControlType](pdfkit/pdfwidgetcontroltype.md)
- [PDFAppearanceCharacteristics](pdfkit/pdfappearancecharacteristics.md)
