Forms 4 - Breaking changes
Describes the breaking changes from Optimizely Forms version 3 to version 4.
Note
Optimizely Forms is supported by MVC-based websites only.
EPiServer.Form.Core
This release implements a feature request to support the validation of multiple elements at once.
-
When a visitor clicks Submit and has JavaScript enabled, elements are validated at once (except CAPTCHA because it needs server-side validation).
-
In non-JS mode, elements are validated at once. New behaviors in this release:
- Validation messages displayed on each failed element
- Input data on the forms is not cleared
-
On server side, this function:
EPiServer.Forms.EditView.Internal.ValidationService.ValidateFormData()
Processes elements at once, and returns the array of
ValidationInfo
.
Breaking changes in Forms 4.0
Interface IValidationService
:
ValidateFormData(NameValueCollection formData, out ValidationInfo validationFailInfo)
is marked with [Obsolete].- Add
ValidateFormData(NameValueCollection formData, out IEnumerable<ValidationInfo> validationFailInfo)
.
Updated 9 months ago