---
title: fieldName()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfannotationchoicewidget/fieldname()
---

# fieldName()

Returns the internal field name associated with the widget annotation.

## Declaration

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

## Return Value

Return Value The internal field name associated with the widget annotation.

## Discussion

Discussion If the widget annotation is backed by PDF form data, it can associate an optional field name with a value or other data.

## See Also

### Managing the Associated Field Name

- [setFieldName(_:)](pdfkit/pdfannotationchoicewidget/setfieldname(_:).md)
