---
title: "setStringValue(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationchoicewidget/setstringvalue(_:)"
---

# setStringValue(_:)

Sets the selection in the widget annotation.

## Declaration

```swift
func setStringValue(_ value: String!)
```

## Parameters

- `value`: The string that represents the selection in the widget annotation.

## Discussion

Discussion If the widget annotation object is backed by PDF form data, this method updates the value associated with the appropriate field in the form object.

## See Also

### Getting and Setting the String Value

- [stringValue()](pdfkit/pdfannotationchoicewidget/stringvalue().md)
