---
title: "Import data into PDF form using Web SDK with Document Engine"
canonical_url: "https://www.nutrient.io/guides/web/forms/fill-form-fields/import-from-server-backed/"
md_url: "https://www.nutrient.io/guides/web/forms/fill-form-fields/import-from-server-backed.md"
last_updated: "2026-05-15T19:10:05.080Z"
description: "Effortlessly import data into PDF forms using Nutrient Web SDK with Document Engine, ensuring automatic synchronization of form field values across all clients. Easily populate fields from various sources, such as databases or backend applications, to enhance your document workflows."
---

# Import data into PDF form using Web SDK with Document Engine

When you use [Nutrient Web SDK with Document Engine](https://www.nutrient.io/guides/web/about/operational-modes.md#nutrient-web-sdk-with-document-engine), the up-to-date form field values of a document are automatically imported when you open the document.

If you use [Instant](https://www.nutrient.io/guides/web/instant-synchronization.md), whenever any of the connected clients fills in the form field, the change is automatically synchronized to all the other connected clients.

Using Web SDK with Document Engine, you can also fill the form fields with values coming from any source — e.g. a database or your backend application — using Document Engine’s [forms API](https://www.nutrient.io/api/reference/document-engine/upstream/). For example, assuming there are form fields called `firstNameField` and `lastNameField` in the document, you can set their values using the following HTTP request:

### SHELL

```shell

curl -X POST http://localhost:5000/api/documents/your-document-id/form-field-values \
  -H "Authorization: Token token=<secret token>" \
  -H "Content-Type: application/json" \
  -d '{
  "formFieldValues": [
    {
      "name": "firstNameField",
      "value": "John"
    },
    {
      "name": "lastNameField",
      "value": "Appleseed"
    }
  ]
}'

```

### HTTP

```http

POST /api/documents/your-document-id/form-field-values HTTP/1.1
Content-Type: application/json
Authorization: Token token=<secret token>

{
  "formFieldValues": [
    {
      "name": "firstNameField",
      "value": "John"
    },
    {
      "name": "lastNameField",
      "value": "Appleseed"
    }
  ]
}

```

After the request succeeds, any [client opening that document from Document Engine](https://www.nutrient.io/guides/web/open-a-document/from-document-engine.md) will see that the form fields have these values. Moreover, any clients that are connected with [Instant](https://www.nutrient.io/guides/web/instant-synchronization.md) enabled will see the values update in real time.
---

## Related pages

- [Adding an image to a PDF form using JavaScript](/guides/web/forms/fill-form-fields/add-image.md)
- [Attach a file to a PDF form using JavaScript](/guides/web/forms/fill-form-fields/attach-a-file.md)
- [Detecting user inputs in PDF forms](/guides/web/forms/fill-form-fields/detect-user-input.md)
- [Dynamic font loading in PDF forms using Nutrient Web SDK](/guides/web/forms/fill-form-fields/dynamic-font-loading.md)
- [Import data into PDFs from a database](/guides/web/forms/fill-form-fields/import-from-database.md)
- [Headless form fill](/guides/web/forms/fill-form-fields/headless.md)
- [Import data into PDF forms using Instant JSON](/guides/web/forms/fill-form-fields/import-from-instant-json.md)
- [Import data into PDF forms using XFDF](/guides/web/forms/fill-form-fields/import-from-xfdf.md)
- [Customizing PDF form permissions](/guides/web/forms/fill-form-fields/permissions.md)
- [Fill PDF form fields using our JavaScript viewer UI](/guides/web/forms/fill-form-fields/using-the-ui.md)
- [Fill PDF forms programmatically using JavaScript](/guides/web/forms/form-filling.md)

