Using adaptive form field names to dynamically create email content

The field names in an adaptive form are called placeholders that are replaced with the value of that field after a user submits the form.

In the Send email action, you can use placeholders that are processed when the action is performed. It implies that the headers of the email (such as To, CC, BCC, Subject) are generated when the user submits the form.

To define a placeholder, specify ${<field name>} in a field after selecting Send email as the Submit Action.

For example, if the form contains the Email address field, named email_addr, for capturing the email ID of a user, you can specify the following in the To, CC, or BCC fields.

${email_addr}

When a user submits the form, an email is sent to the email ID entered in the email_addr field of the form.

NOTE
You can find the name of a field in the Edit dialog for the field.

Variable placeholders can also be used in the Subject and Email Template fields.

For example:

Hi ${first_name} ${last_name},

Your form has been received by our department. It usually takes ten business days to process the request.

Regards

Administrator

NOTE
Fields in repeatable panels cannot be used as variable placeholders.

Experience Manager


Espressos & Experience Manager: AEM Forms

Espressos & Experience Manager

Thursday, Mar 6, 7:00 PM UTC

Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more