[Integration]{class="badge positive"}
Define the rule
[AEM Forms as a Cloud Service]{class="badge informative"}
In the Tags property we created 2 new rules (Field Validation Error and FormSubmit).
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
The Adobe Analytics - Set Variables is configured as follows
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
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.
When you’re ready to test your Tags code,publish your changes made to the tags using the publishing flow.