Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

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