I have a form that I want to track conversions for.
This form uses AJAX to reload, so I want to use Element presence trigger to capture the class that appears after a form is submitted (I’ve found the Form submission trigger unreliable in the past).
This form is also on a page with other forms that have the same submission message class. So, I wanted to use the form’s data-form-ID and the submission message class in the trigger. This way, I can capture form submissions for only that form.
Is it possible to do this? Is there another way to do this?
I’ve tried combining the class and ID (e.g. .SubmissionMessageClass[data-form-id=“12345-12345-12345”]), but the tag won’t fire. The tag will fire when the Element presence CSS selector is just the class (e.g. .SubmissionMessageClass).
