---
title: "Flutter SDK: Prefill the widget form"
description: "Prefill feedback form fields with known values with the Gleap Flutter SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/555-flutter-sdk-prefill-the-widget-form
collection: "Flutter"
updated: 2026-11-01
language: en
---

# Flutter SDK: Prefill the widget form

Prefill feedback form fields with known values with the Gleap Flutter SDK. Follow the integration code examples.

In some situations you might want to prefill some fields for the user. This can be achieved by the following method.

```dart
Gleap.preFillForm(
    formData: <String, dynamic>{
        'description': 'This text will be prefilled.',
        'errordescription': 'This text will be prefilled as well.',
        'someformidentifier': 'This text will also be prefilled.',
      },
);
```

Use the field ID of the attribute assigned to the form question as the key. Open AI agents → Forms, select the form and question, and check Attribute (field ID). You can also find field IDs under Settings → Inbox & tickets → Data attributes.

![Current ticket attributes and Field ID column in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/0BfQwIf0vwqGcjqKp2pDJs2Wct5xgcwVKlLmBiX5jzmoMQ19JQ9l5ideimrvht7xbFbV7UzNJRC.png)

## Related

- [Flutter SDK setup](https://docs.gleap.ai/en/articles/531-flutter-sdk-setup.md)
- [Flutter SDK: User identity](https://docs.gleap.ai/en/articles/532-flutter-sdk-user-identity.md)
- [Flutter SDK: Track events](https://docs.gleap.ai/en/articles/533-flutter-sdk-track-events.md)
- [Flutter SDK: Track pages](https://docs.gleap.ai/en/articles/534-flutter-sdk-track-pages.md)
- [Flutter SDK: Frontend tools](https://docs.gleap.ai/en/articles/535-flutter-sdk-frontend-tools.md)
