I have an event on a form submit.
I set preventDefault() to stop the form submitting then pop a sweetalert with a confirm callback. If they decide to go ahead is POSTS the form to Drupal.
The issue is that it does not hit the form_submit method but redirects to the same page with a GET request. If I simply return true from the jQuery submit event it works.
If they confirm I have tried
form.off('submit').submit()
but it still does not work.
Can anybody help as it is driving me crazy?