HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Forms 4 - Breaking changes

Describes the breaking changes from Optimizely Forms version 3 to version 4.



Optimizely Forms is supported by MVC-based websites only.


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:


    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).