Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eero Hermlin

    (@eero-hermlin)

    I can confirm that this works and could be particularly useful when you use some third party submission form where Scrollbox plugin does not understand natively that desired action has happened. You can call out $DGD.closeAfterSubmit of course also from some other script, like for example from some AJAX response handler function.

    PS. You need to have “Close box permanently for subscribed user” checkbox checked in admin screen for this to work. Additionally you can set also time delay for auto close with setting "Close box automatically after "Thank You" message is shown for".

    Plugin Author Eero Hermlin

    (@eero-hermlin)

    Here another possibly useful implementation of that idea.

    To close Scrollbox automatically after MailChimp submission (Using MailChimp own HTML form), add following piece of script after <!– End mc_embed_signup –>

    <!--End mc_embed_signup-->
    <script type="text/javascript">// <![CDATA[
    jQuery('#mce-success-response').bind("DOMSubtreeModified",function(){
        var boxid = jQuery(this).closest('.dgd_stb_box').attr('id');
        $DGD.closeAfterSubmit(boxid);
    });
    // ]]></script>

    It should work on Chrome, Firefox, IE9+, Safari, Android.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Helper js for setting completed cookie’ is closed to new replies.