volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

EPiServer Forms bug?

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

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.