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

# fieldName()

Returns the internal name of a field (used for reset-form actions).

## Declaration

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

## Return Value

Return Value The internal name of a field.

## Discussion

Discussion The internal name of a field is an optional value.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)

### Managing Control State Values and Form Fields

- [onStateValue()](pdfkit/pdfannotationbuttonwidget/onstatevalue().md)
- [setOnStateValue(_:)](pdfkit/pdfannotationbuttonwidget/setonstatevalue(_:).md)
- [setFieldName(_:)](pdfkit/pdfannotationbuttonwidget/setfieldname(_:).md)
