London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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