WordPress.org

Forums

Contact Form 7
[resolved] jquery trigger mailsent.wpcf7 (7 posts)

  1. iBet7o
    Member
    Posted 8 months ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 8 months ago #

    How do you "recover json" in particular?

  3. iBet7o
    Member
    Posted 8 months ago #

    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/{download_id}

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  5. iBet7o
    Member
    Posted 8 months ago #

    What would be the right solution?

    Thanks

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 8 months ago #

    Simply write the URL of the file in mail body then let the reader download it.

  7. iBet7o
    Member
    Posted 8 months ago #

    thanks :D

Reply

You must log in to post.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic