۶Ƶ

Adaptive Form Submit Action

A Submit Action specifies the destination for the data collected through an Adaptive Form. The submission process begins when the user clicks the Submit button on the form. AEM Forms offers two types of submit actions described below, and lets you create and use custom submit actions to meet your specific needs. The out-of-the-box submit actions are:

Submit to REST endpoint rest-endpoint-submission-ue

Submit to REST Endpoint action is used to send the submitted form data to a specified REST endpoint. The endpoint can belong to either an internal server where the form is hosted or to an external server by using a relative path or an absolute path. To submit data to the AEM server hosting the form, use a relative path corresponding to the root path of the AEM server. For example, /content/forms/af/SampleForm.html. To submit data to any other server, use the absolute path.

To configure a REST endpoint:

  1. Open your Adaptive Form in Editor.
  2. Select Adaptive Form Block.
  3. Click the properties properties icon.
  4. Select the Submit to a REST endpoint from the Submit Action drop-down list.
  5. Specify the REST endpoint URL.
  6. You can also Enable POST request and provide a URL to post the request.

Enable post request for adaptive forms

NOTE
  • To post data to an internal server, provide the path of the resource. The data is posted to the path of the resource. For example, /content/restEndPoint. For such post requests, the authentication information of the submit request is used.
  • To post data to an external server, provide a URL. The format of the URL is https://host:port/path_to_rest_end_point. Ensure that you configure the path to handle the POST request anonymously.

Send Email email-submission-ue

Send Email Submit Action allows you to send an email to one or more recipients upon successful submission of the form. Send Email configuration helps you to create an email that can include form data in a predefined format. For example, consider the following template where customer name, shipping address, state name, and ZIP code are retrieved from the submitted form data. Learn more about Email Templates in Adaptive Forms. Some advantages of configuring an Adaptive Form with Send Email submit action are:

  1. It enables quick communication as form data is directly sent to designated email recipients.
  2. It helps in streamlining the workflow by directly integrating form submissions into email notifications.
  3. It helps organizations customize the email content, thus making it suitable for specific communication needs.

Adaptive Form properties in Universal Editor

To configure a submit action as an Email for your form submission:

  1. Open your Adaptive Form in Editor.
  2. Select your Adaptive Form Block.
  3. Click the properties properties icon.
  4. Select the Send email option from the Submit Action drop-down list.
  5. Once you select the send email option, you can configure the following properties as shown in the image below.
Image
Property
Description
Email Configuration
From
Specify the email address of the sender.
To
Specify the primary recipients of the email, multiple email addresses can be added, separated by commas.
CC
Specify the recipients who should receive a carbon copy (CC) of the email.
BCC
Specify the recipients who should receive a blind carbon copy (BCC) of the email.
Subject
Specify the subject line of the email.
Use External Template
Enables the use of an external email template for formatting the email content. Provide the URL or path to the external template to integrate a pre-designed email template hosted in your AEM Assets folder.
Include Attachment
Specifies whether the submitted form data should include an attachment submitted through the form in the email. Supported attachment formats are PDF, XML, and JSON.

Show a custom thank you message on Adaptive Form submission submit-action-message-ue

On Submit option helps you to configure a Submit Action message on Adaptive Form submission, To configure a Submit Action message for your form:

  1. Open your Adaptive Form in Editor.
  2. Select your Adaptive Form Block.
  3. Click the properties properties icon.
  4. On click, you see the following option:
    • On Submit: On Submit helps you to customize a message to be shown when a form is submitted. By default, a custom message “Thank you for submitting the form” is displayed to the user when a form is successfully submitted.
      You can also customize the Thank You message on form submission, by selecting the option to Show message, and add/edit your message in the Rich Text Editor.

See also

recommendation-more-help
fbcff2a9-b6fe-4574-b04a-21e75df764ab