<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFActionResetForm/fields",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFActionResetForm(py)fields"
  },
  "title" : "fields"
}
-->

# fields

Returns an array of fields associated with the reset action.

```
var fields: [String]? { get set }
```

## Return Value

An array of `NSString` objects that corresponds to the `fieldNames` property of widget annotations (such as [`PDFAnnotationButtonWidget`](/documentation/PDFKit/PDFAnnotationButtonWidget)) on the PDF page. This method can return `NULL`.

## See Also

[`PDFActionResetForm`](/documentation/PDFKit/PDFActionResetForm)

`PDFActionResetForm`, a subclass of `PDFAction`, defines methods for getting and clearing fields in a PDF form.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)