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

# Android SDK: Prefill the widget form

Prefill feedback form fields with known values with the Gleap Android 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.

```java
JSONObject prefill = new JSONObject();
try{
    prefill.put("description", "Prefill the description with this.");
}catch (Exception ex){
    ex.getStackTrace();
}

PrefillHelper.getInstance().setPrefillData(prefill);
```

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

- [Android SDK setup](https://docs.gleap.ai/en/articles/466-android-sdk-setup.md)
- [Android SDK: User identity](https://docs.gleap.ai/en/articles/467-android-sdk-user-identity.md)
- [Android SDK: Callbacks](https://docs.gleap.ai/en/articles/468-android-sdk-callbacks.md)
- [Android SDK: Frontend tools](https://docs.gleap.ai/en/articles/469-android-sdk-frontend-tools.md)
- [Android SDK: Forms](https://docs.gleap.ai/en/articles/470-android-sdk-forms.md)
