SOLVED

Help please - landing page not triggering in smart list

Go to solution
SanfordWhiteman
Level 10 - Community Moderator

Re: Help please - landing page not triggering in smart list

That matters a lot.

Anonymous
Not applicable

Re: Help please - landing page not triggering in smart list

Updated doest seem to be firing

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

<form id="mktoForm_2190"></form>

<script>

MktoForms2.loadForm("//app-sjst.marketo.com", "663-HBN-994", 2190, function(form) {

    //Add an onSuccess handler

    form.onSuccess(function(values, followUpUrl) {

        // Take the lead to a different page on successful submit, ignoring the form's configured followUpUrl

        location.href = "https://www.surveymonkey.com/r/5KQ3VGB";

        // Return false to prevent the submission handler continuing with its own processing

        return false;

    });

  form.submit();

});

</script>

Grégoire_Miche2
Level 10

Re: Help please - landing page not triggering in smart list

I still see "app-sjst" in the LP. Have you approved it after your change ?

-Greg

Anonymous
Not applicable

Re: Help please - landing page not triggering in smart list

Defiantly. Maybe the Lp is bugged Ill try it on a new one

Anonymous
Not applicable

Re: Help please - landing page not triggering in smart list

Just Tried on a new LP, still no go

Thankyou

Grégoire_Miche2
Level 10

Re: Help please - landing page not triggering in smart list

You still have a app-sjst in a URL, line 337 of the page.

MktoForms2.loadForm("//app-sjst.marketo.com", "663-HBN-994", 2190, function(form) {

change it to

MktoForms2.loadForm("//app-ab02.marketo.com", "663-HBN-994", 2190, function(form) {

-Greg

Anonymous
Not applicable

Re: Help please - landing page not triggering in smart list

Nice work on this I learned a lot!

Grégoire_Miche2
Level 10

Re: Help please - landing page not triggering in smart list

Apparently, it works...

One of the lessons to be learnt is that to work on forms 2.0, always start from the code extracted from Marketo.

-Greg

Nicholas_Manojl
Level 9

Re: Help please - landing page not triggering in smart list

This is a long thread with an easy answer.

The first link needs to be to a page with the Marketo cookie on it - ie, your company website or a Marketo landing page. You can just make a simple page which then links to the Survey Monkey.

Otherwise your program will only work with people who have already been cookied.

Grégoire_Miche2
Level 10

Re: Help please - landing page not triggering in smart list

Not that simple, because your method adds a click. The point was to avoid that click...