Option 1: Select a File Containing the HTML Template

Before proceeding, ensure that you have uploaded the HTML template to your AEM Forms environment.

  1. Open the Adaptive Form for editing.

  2. Go to the Content Browser, select the Guide Container, and tap the properties icon. A dialog box with title Adaptive Form Container appears.

  3. Go to the Submission tab and select the Send email submit action.

    Send email submit action

  4. Enable the Use external template option.

  5. Enable the Use HTML template option.

  6. Click the folder icon for the External Template Path option and browse to select your HTML template.

  7. Click Done to save the configuration.

Your HTML template is now configured for the Adaptive Form.

Option 2: Manually Enter or Paste an HTML Template

  1. Open the Adaptive Form for editing.
  2. Go to the Content Browser, select the Guide Container, and tap the properties icon. A dialog box with title Adaptive Form Container appears.
  3. Go to the Submission tab and select the Send email submit action.
  4. Enable the Use HTML template option.
  5. Type or paste your HTML code directly into the provided Email Template box.

Configure a plain-text template for an adaptive form

You can set up an Adaptive Form to send an email upon submission using the Send email submit action. The action provides two methods for configuring a plain-text template:

Option 1: Select a File Containing the Template

Before proceeding, ensure that you have uploaded the HTML template to your AEM Forms environment.

  1. Open the Adaptive Form for editing.
  2. Go to the Content Browser, select the Guide Container, and tap the properties icon. A dialog box with title Adaptive Form Container appears.
  3. Go to the Submission tab and select the Send email submit action.
  4. Enable the Use external template option.
  5. Click the folder icon for the External Template Path option and browse to select your plain-text template.
  6. Click Done to save the configuration.

Your template is now configured for the Adaptive Form.

Option 2: Manually Enter or Paste an HTML Template

  1. Open the Adaptive Form for editing.
  2. Go to the Content Browser, select the Guide Container, and tap the properties icon. A dialog box with title Adaptive Form Container appears.
  3. Go to the Submission tab and select the Send email submit action.
  4. Type or paste your plain-text template code directly into the provided Email Template box.

Use Form Data in Your Email Templates

You can include form data in your email templates by using placeholders. These placeholders are dynamically replaced with actual form field values when the email is sent. For example:

  • ${name}: The value of the field named “name.”
  • ${email}: The value of the field named “email.”
  • ${message}: The value of the field named “message.”