HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Forms 4 - Breaking changes

This topic 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 validation of multiple elements at once.

  • When a visitor clicks Submit and has JavaScript enabled, all elements are validated at once (except CAPTCHA, because it needs server-side validation).

  • In non-JS mode, all 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 all 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).

Did this page help you?