---
title: stringValue()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfannotationchoicewidget/stringvalue()
---

# stringValue()

Returns the selection in the widget annotation.

## Declaration

```swift
func stringValue() -> String!
```

## Return Value

Return 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 returns the value associated with the appropriate field in the form object, if possible.

## See Also

### Getting and Setting the String Value

- [setStringValue(_:)](pdfkit/pdfannotationchoicewidget/setstringvalue(_:).md)
