DOM Event only works on my first form
-
Hello,
I have several forms but only my first form seems to work with the DOM Event.
Tested the forms with this code im my consoledocument.addEventListener( 'wpcf7submit', function( event ) { alert( "Fire!" ); }, false );
from this site
https://contactform7.com/dom-events/
The alert only appears when testing my first form
Also only on the other forms the URL in the browser changes to
https://domain.com/contact-form/#wpcf7-f12988-p12989-o1
Tried it with WPML translated forms and without WPML translated formsKind regards,
Mike
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘DOM Event only works on my first form’ is closed to new replies.