This project is read-only.
1
Vote

Custom errormessage not shown

description

Hi,

The validationgroup works, but the errormessages i see are default messages like "The CompanyName field is required."

Without the validationgroups, i had a custom errormessage like "Gelieve de bedrijfsnaam in te vullen".
<input class="input-validation-error" data-val-required="Gelieve de bedrijfsnaam in te vullen" id="CompanyName" name="CompanyName" placeholder="Naam bedrijf of groep *" type="text" value="" />

@Html.TextBoxFor(o => o.CompanyName, new {placeholder = "Naam bedrijf of groep *", data_val_required = "Gelieve de bedrijfsnaam in te vullen" })

comments