---
title: "Extract data from PDF form fields in React Native | Nutrient"
canonical_url: "https://www.nutrient.io/guides/react-native/forms/extract-form-data/"
md_url: "https://www.nutrient.io/guides/react-native/forms/extract-form-data.md"
last_updated: "2026-06-09T10:26:34.616Z"
description: "Nutrient React Native SDK lets you extract data from form fields programmatically. Each form field has a fully qualified name."
---

# Extract data from PDF form fields in React Native

Nutrient React Native SDK allows you to extract data from form fields programmatically. Each form field has a fully qualified name, which is used to identify and retrieve a specific form field object before extracting its data.

## Getting the fully qualified name of a form field

The example below shows how to obtain the fully qualified name of the first form field of a document:

```js

const formElements = await this.pdfRef.current?.getDocument().forms.getFormElements();
const firstFormFieldName = formElements[0].fullyQualifiedFieldName;

```

The `getFormElements` method returns an array of `FormElement` objects. See the [API reference](https://www.nutrient.io/api/react-native/FormElement.html) for a list of available objects.



## Getting the data from a form field

The example below shows how to get the value of a form field with a `fullyQualifiedFieldName` of `Last_Name`:

```js

const formElements = await this.pdfRef.current?.getDocument().forms.getFormElements();
const formElement = formElements?.find(
	(element) => element.fullyQualifiedFieldName === 'Last_Name',
);
const lastName = formElement?.formField?.value;

```
---

## Related pages

- [Flatten PDF form fields in React Native](/guides/react-native/forms/flatten.md)
- [Embed data into PDF forms in React Native](/guides/react-native/forms/embed-data-into-pdf.md)
- [PDF form library for React Native](/guides/react-native/forms.md)

