Use Pop Up! with two redirects

Is there a way that I can use the Pop Up! plugin and have two different redirects. One for when they submit their contact info and the second when they close the window?

I would like the Submit to take then to a link in the store and the “Close Window” to ask “Are you sure?” Any help would be fantastic.

  • Vladislav
    • Dead Eye Dev


    As @vaughan mentioned, you would need some custom code to make this happen but, fortunately, it wouldn’t be very complex at all. As for the first redirect, the one that happens on contact submission, that really depends on how the submission is implemented but shouldn’t be difficult. As for the second redirect, the one that is to happen on visitor closing a popover, the plugin will fire a handy “popover-closed” jQuery event which you can listen to and do your redirection. For an example:

    jQuery(document).on("popover-closed", function () { window.location = "//"; });

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.