Title: jquery trigger mailsent.wpcf7
Last modified: August 22, 2016

---

# jquery trigger mailsent.wpcf7

 *  Resolved [iBet7o](https://wordpress.org/support/users/ibet7o/)
 * (@ibet7o)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/)
 * using the **mailsent.wpcf7** trigger is possible to recover the json response?
 * I modified the json response with hook “wpcf7_ajax_json_echo” and need recover
   json in the jquery code.
 * thanks,
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232921)
 * How do you “recover json” in particular?
 *  Thread Starter [iBet7o](https://wordpress.org/support/users/ibet7o/)
 * (@ibet7o)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232951)
 * I have been asked the download of a file after submitting the form, I have added
   a flag in the json response depending on the form name.
 * In the mailsent.wpcf7 trigger I need to get that flag and redirect to [http://localhost/downloads/](http://localhost/downloads/){
   download_id}
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232961)
 * The json response data isn’t accessible through the mailsent.wpcf7 event and,
   before that, you don’t need the mailsent.wpcf7 event for such purposes.
 *  Thread Starter [iBet7o](https://wordpress.org/support/users/ibet7o/)
 * (@ibet7o)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232967)
 * What would be the right solution?
 * Thanks
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232969)
 * Simply write the URL of the file in mail body then let the reader download it.
 *  Thread Starter [iBet7o](https://wordpress.org/support/users/ibet7o/)
 * (@ibet7o)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232974)
 * thanks 😀

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

The topic ‘jquery trigger mailsent.wpcf7’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [trigger](https://wordpress.org/support/topic-tag/trigger/)

 * 6 replies
 * 2 participants
 * Last reply from: [iBet7o](https://wordpress.org/support/users/ibet7o/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/jquery-trigger-mailsentwpcf7/#post-5232974)
 * Status: resolved