Title: Javascript Event Redirection
Last modified: August 14, 2020

---

# Javascript Event Redirection

 *  Resolved [nicoolass](https://wordpress.org/support/users/nicoolass/)
 * (@nicoolass)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/)
 * Hello,
 * The redirection after form’s submit with javascript addEventListener seems not
   working.
    document.addEventListener( ‘wpcf7mailsent’, function( event ) { if (“
   form_id” == event.detail.contactFormId ) { location = “<?php echo esc_url( home_url(”));?
   >/success-page/”; } } Do you have noticed this issue ? Is there a solution ?
 * Thank you
 * Best regards,
    Nicolas

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/#post-13255704)
 * Hi [@nicoolass](https://wordpress.org/support/users/nicoolass/) ,
 * Thanks for using CF7 Multistep plugin, I will consult developers about this and
   so, please allow me some time to get back to you with a feedback in this case.
 * Thank you.
 * Kind regards,
    -Bruce-
 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/#post-13258914)
 * Hi [@nicoolass](https://wordpress.org/support/users/nicoolass/) ,
 * We have checked this case and did not see that error, so I suggest that you make
   sure to update to the latest version of the plugin and then clear your website’s
   cache, check again and let us know if you still need assistance.
 * Thank you.
 * Kind regards,
    -Bruce-
 *  Thread Starter [nicoolass](https://wordpress.org/support/users/nicoolass/)
 * (@nicoolass)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/#post-13267002)
 * Hi [@ninjateamwp](https://wordpress.org/support/users/ninjateamwp/),
 * Thank you for your time and your answer.
    I have just tested this morning and
   it’s working ! Maybe a cache problem as you said, I already have the latest version
   installed.
 * Best regards,
    Nicolas
 *  Plugin Author [Ninja Team](https://wordpress.org/support/users/ninjateam/)
 * (@ninjateam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/#post-13267049)
 * Thanks for the update [@nicoolass](https://wordpress.org/support/users/nicoolass/),
   I am so glad that it’s working for you. I hope you can leave the plugin a nice
   review.
 * Best regards,
    Kelly

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript Event Redirection’ is closed to new replies.

 * ![](https://ps.w.org/cf7-multi-step/assets/icon-256x256.png?rev=2775701)
 * [Multi Step for Contact Form 7](https://wordpress.org/plugins/cf7-multi-step/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-multi-step/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-multi-step/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-multi-step/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-multi-step/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-multi-step/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Ninja Team](https://wordpress.org/support/users/ninjateam/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/javascript-event-redirection/#post-13267049)
 * Status: resolved