Hi @Robert Coscia ,
According to your needs, I made a demo, you can refer to it..
view code:
@model WebApplication1.Models.City
@{
ViewBag.Title = "Test";
}
<h2>Test</h2>
@Html.LabelFor(m => m.CollegeListQuestionnaireFamilys, "First Name")
@Html.TextBoxFor(m => m.CollegeListQuestionnaireFamilys, new {@class="form-control",aria_describedby="CityError", maxlength = 50, aria_required = "true"})<br />
@Html.ValidationMessageFor(m => m.CollegeListQuestionnaireFamilys, "The StudentName field is required", new { @class = "text-danger",id= "CityError" })
Result:
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
ChaoDeng