@inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation>
@if (Model.Invalid)
{
  <div class="text-danger validation-error">
    @Model.ErrorMessage
  </div>
}

@inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation>
@* for the NoScript rendering, this is solely rendered server side *@
@if (Model.Invalid)
{
  <div class="text-danger validation-error">
    @Model.ErrorMessage
  </div>
}

Comment for validation error rendering
Comment for validation error rendering
