Integration

Define the rule

AEM Forms as a Cloud Service

In the Tags property we created 2 new rules (Field Validation Error and FormSubmit).

adaptive-form

Field Validation Error

The Field Validation Error rule gets triggered every time there is validation error in adaptive form field. For example in our form if the telephone number or the email is not in the expected format a validation error message is displayed.

The Field Validation Error rule is configured by setting the event to Adobe Experience Manager Forms-Error as shown in the screen shot

applicant-state-residence

The Adobe Analytics - Set Variables is configured as follows

set action

Form Submit Rule

The Form Submit rule is triggered every time an Adaptive Form is successfully submitted.

The Form Submit rule is configured using the Adobe Experience Manager Forms - Submit event

form-submit-rule

In the Form Submit rule, the value of the data element ApplicantsStateOfResidence is mapped to prop5 and the value of the data element FormTitle is mapped to prop8.

The Adobe Analytics - Set variables is configured as follows.
form-submit-rule-set-variables

When you’re ready to test your Tags code,publish your changes made to the tags using the publishing flow.

Next steps

Test the solution

recommendation-more-help
4859a77c-7971-4ac9-8f5c-4260823c6f69