Quantcast
Channel: contact form 7 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 9540

danieliser on "[Plugin: Easy Modal] Modal closes on CF7 Form "Submit""

$
0
0

Im assuming you want to close the modal after x seconds.

So.

function modal_form_success()
{
	setTimeout(function(){
		jQuery('.modal.active').emodal('close');
	}, x);
}

and then in your forms callbacks
on_sent_ok: modal_form_success()

There are a couple of commands you can use with the emodal() function
close,open and center to name a few. For open though best to use the modals id eModal-# as a selector instead of .modal.active.


Viewing all articles
Browse latest Browse all 9540

Trending Articles