November Happy Hour will be moved to Thursday December 5th.

Submit a form asynchronously in Ajax mode

Found in

EPiServer.Forms 2.1

Fixed in

EPiServer.Forms 3.0.0

(Or a related package)

Created

Jun 17, 2016

Updated

Jul 15, 2016

Area

JavaScript API

State

Closed, Fixed


Description

To make Episerver Forms use $.ajax() to submit a form asynchronously, do one of the following:

  • set JavaScript object epi.EPiServer.Forms.AsyncSubmit to true
  • decorate the <form> tag with attribute *data-epiforms-async-submit="true" *

Otherwise, a form submits SubmissionData to serverside synchronously (to prevent a visitor from continuously clicking Submit).