# Popup Form Template

With the `FormTemplate` feature, you can customize the appearance and content of the create/edit Popup window of the TreeList. Declare the desired custom content inside the `<FormTemplate>` inner tag of the `<TreeListPopupEditFormSettings>`.

You can use the `Context` attribute of the `<FormTemplate>` tag to set the name of the context variable. The context variable is of type `object` and can be cast to the model type to which the TreeList is bound.

> When using the template, the default Popup form is replaced by the declared content within the `FormTemplate` tag. Consequently, the default `Update` and `Cancel` buttons are removed. This means the [`OnUpdate` and `OnCancel`](https://www.telerik.com/blazor-ui/documentation/components/treelist/editing/overview#events) events cannot be triggered. To modify or cancel the update of a record, you need to include custom controls to manage these actions.

> caption Using a `FormTemplate` to modify the Edit/Create Popup window.

<demo metaUrl="client/treelist/templates/popup-form-template/example-1/" height="720"></demo>

## See Also

* [TreeList Popup Buttons Template](https://www.telerik.com/blazor-ui/documentation/components/treelist/templates/popup-buttons-template)
* [Live Demo: TreeList Templates](https://demos.telerik.com/blazor-ui/TreeList/templates)
* [Live Demo: TreeList Popup Edit Form Template](https://demos.telerik.com/blazor-ui/treelist/popup-edit-form-template)
