Form Submit event on iOS 8 not firing
-
I was having trouble attaching an event handler to the ‘wpcf7mailsent’ event on iOS 8 and older (eg: iPhone 6 Plus). After some investigation, it looks like the submit function wasn’t being called because of this piece of code in scripts.js (line 187):
$form.submit( function( event ) { if ( typeof window.FormData !== 'function' ) { return; wpcf7.submit( $form ); }
window.FormData is an object on iOS 8 and older so the form wasn’t calling
wpcf7.submit
.
I hope this can be fixed one way or another. For those looking for a temporary solution, I used a polyfill for FormData: https://github.com/jimmywarting/FormData
- The topic ‘Form Submit event on iOS 8 not firing’ is closed to new replies.