Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

EPiServer Forms bug?

Vote:
 

Hi guys,

I'm trying out EPiServer Forms 3.0.0. Some of my test form's fields has the Required validator checked, and when I try to submit a form which gives errors (for instance "Validation failed on 'Name' field"), all the other fields are cleared. I have to re-enter data again. Anyone seen this before?

BR
Patrik

#151431
Jul 21, 2016 11:33
Vote:
 

Hi Patrik,

Do you have @Html.RequiredClientResources("Footer") in your Layout page?

I tested forms 3.0.0 with Alloy. I tried to disable ClientValidationEnabled and UnobtrusiveJavaScriptEnabled in the web.config, set Html.EnableClientValidation(false); and Html.EnableUnobtrusiveJavaScript(false); int the razor view, etc. Client-side validation is always triggered.

The only time when the postback was triggered (which showed server-side error messages and cleared the form fields) was when I removed @Html.RequiredClientResources("Footer") from the Layout page.

#151471
Jul 22, 2016 22:13
* 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.