user3522457 user3522457 - 1 year ago 122
CSS Question

close popup after click / submit button trigger in mailchimp

The opt in is catchy and effective I believed but the UX is bad. The user has to manually close the pop-up even after he submitted the email.

How to close the pop up after user submitted the email? Maybe make it delay 1-2 sec after telling the email received.


<script type='text/javascript'>
(function($) {
window.fnames = new Array();
window.ftypes = new Array();
ftypes[0]='email'; = true; = 2000;
if (mc.showPopup) mc.evalPopup();
var $mcj = jQuery.noConflict(true);

Answer Source

Something like this should work.

//Listen for form submit
$('#mc-embedded-subscribe-form').submit(function (e) {

    //hide popup 


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download