--- sidebar_position: 5 title: Creation of the form --- ## Creation of the form We will use the same form as the one on the `Add.razor` page, the only differences are: * The default value for the "Enchant categories" & "Repair with" lists so that they are checked when displaying the form. * Image display Open the `Pages/Edit.razor` page and modify it as follows: ```cshtml title="Pages/Edit.razor" @page "/edit/{Id:int}"

Edit

Enchant categories:

@foreach (var item in enchantCategories) { }

Repair with:

@foreach (var item in repairWith) { }

```