Configure asynchronous submission

To configure asynchronous submission for an adaptive form:

  1. In adaptive form authoring mode, select the Form Container object and select cmppr1 to open its properties.

  2. In the Submission properties section, enable Use asynchronous submission.

  3. In the On Submit section, select one of the following options to perform on successful form submission.

    • Redirect to URL: Redirects to the specified URL or page on form submission. You can specify a URL or browse to choose the path to a page in the Redirect URL/Path field.
    • Show Message: Displays a message on form submission. You can write a message in the text field below the Show Message option. The text field support rich text formatting.
  4. Select check-button1 to save the properties.

How asynchronous submission works

AEM Forms provides out-of-the-box success and error handlers for form submissions. Handlers are client-side functions that execute based on the server response. When a form is submitted, the data is transmitted to the server for validation, which returns a response to the client with information about the success or error event for the submission. The information is passed as parameters to the relevant handler to execute the function.

In addition, form authors and developers can write rules at form level to override default handlers. For more information, see Override default handlers using rules.

Let us first review the server response for success and error events.