Try our conversational search powered by Generative AI!

Episerver form custom validation message for each field


Hello Episerver experts,

Does anyone know if we can customize a validation message for each field? Now I have 2 textboxes (Name, Email), those are required. When I click a submit button without input information those fileds, then the validation message show up "Field is requied" (Standard episerver form). 

But I would like to have the validation message for show specific field name. Like "Name is required" and "Email is required".

Waiting to hear from any helps. Thanks


Aug 24, 2017 14:34

It will be very surprising if this will not work 

[Required(ErrorMessage = "Your Error message")]
Aug 24, 2017 15:50
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.