You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to minimal reproduction or a simple code snippet
@usingSystem.ComponentModel.DataAnnotations
<Validations Mode="ValidationMode.Auto" Model="@user"><Validation><Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is2">Full Name</FieldLabel><FieldBody ColumnSize="ColumnSize.Is10"><TextEdit Placeholder="First and last name"@bind-Text="@user.Name"><Feedback><ValidationError/></Feedback></TextEdit></FieldBody></Field></Validation><Validation><Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is2">Email</FieldLabel><FieldBody ColumnSize="ColumnSize.Is10"><TextEdit Placeholder="Enter email"@bind-Text="@user.Email"><Feedback><ValidationError/></Feedback></TextEdit></FieldBody></Field></Validation><Validation><Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is2">Password</FieldLabel><FieldBody ColumnSize="ColumnSize.Is10"><TextEdit Role="TextRole.Password"Placeholder="Password" @bind-Text="@user.Password"><Feedback><ValidationError/></Feedback></TextEdit></FieldBody></Field></Validation><Validation><Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is2">Re Password</FieldLabel><FieldBody ColumnSize="ColumnSize.Is10"><TextEdit Role="TextRole.Password"Placeholder="Retype password" @bind-Text="@user.ConfirmPassword"><Feedback><ValidationError/></Feedback></TextEdit></FieldBody></Field></Validation></Validations>@code{User user =newUser();publicclassUser{[Required][StringLength(10,ErrorMessage="Name is too long.")]publicstringName{get;set;}[Required][EmailAddress(ErrorMessage="Invalid email.")]publicstringEmail{get;set;}[Required(ErrorMessage="Password is required")][StringLength(8,ErrorMessage="Must be between 5 and 8 characters",MinimumLength=5)][DataType(DataType.Password)]publicstringPassword{get;set;}[Required(ErrorMessage="Confirm Password is required")][StringLength(8,ErrorMessage="Must be between 5 and 8 characters",MinimumLength=5)][DataType(DataType.Password)][Compare("Password")]publicstringConfirmPassword{get;set;}[Required]publicstringTitle{get;set;}[Range(typeof(bool),"true","true",ErrorMessage="You gotta tick the box!")]publicboolTermsAndConditions{get;set;}}}
Blazorise Version
1.7.0
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
Steps to reproduce & bug description
What is expected?
Verification should be successful.
What is actually happening?
Verification failed.
What browsers do you see the problem on?
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: