Hi.
In the popup any event is executed by ajax.
Submit the form is in the tasks of popup plugin and after it shows the form answer. All this is by ajax.
But others tasks, like the redirect or refresh or others is not contemplated.
You can developed it using the trigger :
jQuery(document).on('spu.box_close',function(e,id){ ... })
Other solution:
With the popup premiun you can put a native Mailchimp form with several designs.
https://imgur.com/a/JbzK6HL
And, you can put a URL to redirect when it do a convertion.
https://imgur.com/a/mitskqD
Regards
-
This reply was modified 7 years ago by
gonzalesc.
Hi
Thanks for your reply.
jQuery(document).on('spu.box_close',function(e,id){ ... });
jQuery(document).on('spu.box_open',function(e,id){ ... });
jQuery(document).on('spu.form_submitted',function(e,id){ ... });
but close event trigger is not good because if i close without entering anything into form then it will redirect to that page. but you have no form_success event in code ?
jQuery(document).on('spu.form_success',function(e,id){
Thanks
LR
Hi.
The event success is decided by Mailchimp plugin in this case, because only they know when the form was sent success.
For example, the success event in CF7 is mailsent.wpcf7
$('body').on('mailsent.wpcf7', {.....});
And if you want to show/hide a popup, you can use :
https://gist.github.com/timersys/a8568e1848a49ae2fe0c
Regards