---
title: fieldName
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/fieldname
---

# fieldName

The widget identifier for form annotation actions and behaviors.

## Declaration

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

## Mentioned in

Adding Widgets to a PDF Document

## Discussion

Discussion Use this identifier to refer to the widget when using a PDFActionResetForm action.

## See Also

### Configuring Widget Annotations

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