5 Replies Latest reply on Jun 2, 2014 6:30 PM by 35988

    Embedded Thank You Page

    Minder Singh
      I'm using the embed code to place a form into my website. On submission I would like the "Thank You" copy to show up in place of the form instead of opening in a new window. Is this possible?
        • Re: Embedded Thank You Page
          You could use an iframe? That's the only solution that jumps out at me. - Jeff
          • Re: Embedded Thank You Page
            Minder Singh
            Thanks Jeff.

            I'm trying to avoid creatiing an iframe or followup landing page if it's possible. Ideally, I'd like to adjust the javascript so when the form is submitted, it is replaced with a message like "Thank You for Submitting, a representative will contact you shortly."
            • Re: Embedded Thank You Page
              Hey Minder - 

              You should check out some of our documentation on: http://developers.marketo.com/documentation/websites/forms-2-0/

              We have a set of js APIs designed for use on externally embedded forms that should help you tackle your use case.

              Specifically, take a look at example 1 (which shows how to hide the form onSuccess).  Although this won't provide you every step of the way to solving the case, building on that example, you should be able to make this work!


              • Re: Embedded Thank You Page
                Minder Singh

                     Thanks Jason! We've worked out a solution where we've created our followup pages in our CMS. Next step is to hide/obscure the URL of the followup page. 

                     Here's the script if anyone's looking:

                     <script src="//app-aba.marketo.com/js/forms2/js/forms2.js">
                     <form id="mktoForm_xxxx"> </form>

                     MktoForms2.loadForm("//app-aba.marketo.com", "xxxx", xxxxx,
                     //Add an onSuccess handler
                     form.onSuccess(function(values, followUpUrl){
                     location.href = "CMS Followup URL";
                     return false;
                • Re: Embedded Thank You Page
                  I don't really understand code but I'm trying to double check if this works or not -- does the above meean that it is possible so that if you have a form in a lightbox, once the form is submitted, you can have a very simple thank you page that will stay within the lightbox and then you can X out so that the user will stay within the original page?