The Enroll Form has a complicated setup. There is no submit button. The form is a multi-step form. The normal capture of lead is not working.
Created a script to capture the lead on submitting the form instead of clicking the submit button.
<script>
// Clone the form to leave the original form untouched
var originalForm = document.querySelector('form');
var formClone = originalForm.cloneNode(true);
var clonedFormId = 'mcfx_custom_id_zipcode'; // Fill this out please.
var emailInput = formClone.querySelector('input[name="customerInformation.email"]');
if (emailInput) {
formClone.removeAttribute('id');
formClone.id = clonedFormId; // This removes the original ID and add a new ID that you can use as selector for Form
formClone.removeAttribute('class'); // Remove all classes from the cloned form
// Now, capture the cloned form
mcfx('capture', formClone);
console.log('MCFX capture success');
}
</script>
Then trigger is a Form Submission with conditions: “Form URL” contains “enroll.nepower.com/?zipcode=”.
The lead was captured.