Viewing 1 replies (of 1 total)
  • Thread Starter Benjamin Pick

    (@benjamin4)

    Okay, after some debugging I realized that:
    1) The reset event already is called
    2) However, wpcf7 clears the form after resetting it, so that the changes made during the reset form are overwritten by clearForm
    3) Thus, I’d suggest triggering the jQuery form handlers after clearing the form:

    $(data.into).find('form').resetForm().clearForm().triggerHandler('reset');
    (script.js:58)

    (triggerHandler does not call the standard reset form event, but only those added via jquery’s bind. So standard functionality is not affected by this change, and the form isn’t reset twice.)

    Would you please apply this patch? You could also trigger a custom event such as 'wpcf7_submit_success' or similar.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Trigger jQuery Event’ is closed to new replies.