---
title: ".NET MAUI SDK: Prefill the widget form"
description: "Prefill feedback form fields with known values with the Gleap .NET MAUI SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/656-net-maui-sdk-prefill-the-widget-form
collection: ".NET MAUI (Beta)"
updated: 2026-11-01
language: en
---

# .NET MAUI SDK: Prefill the widget form

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

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

```csharp
Gleap.PreFillForm(new Dictionary<string, object?>
{
    ["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

- [.NET MAUI SDK setup](https://docs.gleap.ai/en/articles/640-net-maui-sdk-setup.md)
- [.NET MAUI SDK: User identity](https://docs.gleap.ai/en/articles/641-net-maui-sdk-user-identity.md)
- [.NET MAUI SDK: Track events](https://docs.gleap.ai/en/articles/642-net-maui-sdk-track-events.md)
- [.NET MAUI SDK: Track pages](https://docs.gleap.ai/en/articles/643-net-maui-sdk-track-pages.md)
- [.NET MAUI SDK: Forms](https://docs.gleap.ai/en/articles/644-net-maui-sdk-forms.md)
