3 Replies Latest reply on Jun 17, 2015 10:45 AM by Kate Borsheim

    How do you add a "Thank You" message upon form completion within a lightbox?

    Kate Borsheim

      Hi!

       

      I'm looking for assistance with adding a "Thank You" message upon a form's completion within a lightbox. I do not care to send the user to a separate thank you page upon form completion. Any ideas? I currently have the following:

       

      <!-- LightBox2 -->

      <a href="javascript:;" id="lightbox-link2"><img src="http://info.shavlik.com/rs/635-QZI-186/images/Contact-Us-Tile.gif"></a>

                <script src="//app-sji.marketo.com/js/forms2/js/forms2.js"></script>

                <form id="mktoForm_5504"> </form>

                <script>

                  var btn = document.getElementById("lightbox-link2");

                  btn.onclick = function(){MktoForms2.loadForm("//app-sji.marketo.com", "635-QZI-186", 5504, function (form){MktoForms2.lightbox(form).show();

                    });

                  };

                </script>

      <!-- End LightBox2 -->

       

      Thank you!

      -kate (total js noob)