Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

FluentEditForm says that there is no data, despite data entered being there

$
0
0

My code, below, is a fluenteditform form. After I submit, it says that the fields still need to be filled out even though I filled them out. What is wrong with my code?

@page "/movieform" @using Assignment10.Entities@using System.ComponentModel.DataAnnotations<h3>MovieForm</h3><FluentCard><FluentEditForm FormName="MovieForm" Model="@movie"><DataAnnotationsValidator /><FluentValidationSummary /><FluentGrid><FluentGridItem xs="12"><FluentTextField Name="MovieNameField" Id="movieNameField" @bind-Value="movie.MovieName" Label="Name: " Required/><ValidationMessage For="@(() => movie.MovieName)" /></FluentGridItem><FluentGridItem xs="12"><FluentTextField Name="MoviePublisherField" Id="moviePublisherField" @bind-Value="movie.Publisher" Label="Publisher: " Required/><ValidationMessage For="@(() => movie.Publisher)" /></FluentGridItem><FluentGridItem xs="12" ><FluentTextField Name="MovieDescriptionField" Id="movieDescriptionField" @bind-Value="movie.MovieDescription" Label="Description: " Required/><ValidationMessage For="@(() => movie.MovieDescription)" /></FluentGridItem><FluentGridItem xs="12" ><FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent">Submit</FluentButton></FluentGridItem></FluentGrid></FluentEditForm></FluentCard>@code {    private Movie movie = new Movie(); }

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>