WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Submit Events (5 posts)

  1. Tonio
    Member
    Posted 1 year ago #

    Curious if anyone knew if I could somehow write custom events within jQuery for the form submission.

    Looking into mailchimp.js I noticed that there was a success callback that fires the mc_success function. Any ideas of how to access this without editing the plugin files?

    I tried using global ajax handlers from jQuery I couldn't get them working.

    http://api.jquery.com/category/ajax/global-ajax-event-handlers

    http://wordpress.org/extend/plugins/mailchimp/

  2. Tonio
    Member
    Posted 1 year ago #

    Looks like this plugin is actually using the jQuery Form Plugin.

    Any way to globally monitor its events?

    http://malsup.com/jquery/form

  3. mc_tak
    Member
    Posted 1 year ago #

    Hey anthony,

    thanks for writing in. would you be able to elaborate a bit on the intended interaction you're looking for in the sign up process? this'll help us narrow in on the issue a bit more. thanks!

    -tk

  4. Tonio
    Member
    Posted 1 year ago #

    It would be nice to have the ability to fire a jQuery function based on the responses such as:

    • Submit Success
    • Duplicate address entry
    • Invalid email address
    • General Error

    -Anthony

  5. mc_tak
    Member
    Posted 1 year ago #

    Hey Anthony,

    While adding or editing the code of the plugin goes a bit outside the range of support that we provide on this forum, I'd be happy to provide my recommendations to get you pointed in the right direction.

    If you're looking to only edit the content of the messages that you describe above (i.e. change the submit success text to a unique custom message), you can do this by editing the .PO file in your plugin's PO directory. You can use a program like POedit to do just that, then generate a new .MO file, and upload both into your "po" directory. And this will allow you to set your own custom messages. This page walks through it as well:

    http://wordpress.org/extend/plugins/mailchimp/faq/

    If you're looking to implement more advanced jQuery functionality into the plugin's processes, your best bet would be to take a look at the plugin code to see what can be added or worked around the current existing code. I'm afraid we don't have any documentation that directly addresses adding custom handlers, but it's something that I can pass along to our developers to provide support for in a future release. The plugin code can be viewed by going to WP Admin > Plugins > Editor > MailChimp.

    If you have any further questions, let us know!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic