I'm having a form with two input components validated as required and email.
When leaving both fields blank and submitting the form inline error messages are shown telling me that the first field is required and second one is not a valid email address. So far so good, but I would like manipulate these error messages and give them in different languages. How do I do that? Before my submit action is hit in my controller the ModelState propery is populated with the error messages. It's possible for me to change the messages already entered in the ModelsState property, but that seems like the wrong way to handle this.
did you solve this?
(Response to old question, but someone might find this handy)
Hi have a look at this blog post, it lists the "resource keys": http://cjsharp.com/blog/2013/04/30/list-of-xform-system-localization-keys-in-episerver-7/
and if you haven't noticed that the LAng folder is gone, read this one to know how to implement the xml based resources : http://sdkbeta.episerver.com/SDK-html-Container/?path=/SdkDocuments/EPiServerFramework/7/Knowledge%20Base/Developer%20Guide/Localization/CustomLocalizationProvider.htm&vppRoot=/SdkDocuments//EPiServerFramework/7/Knowledge%20Base/Developer%20Guide/
then you can simply have in you xml file something like this
<inlineerrormessage>Your customized invalid email format message</inlineerrormessage>