SOLVED

Help please - landing page not triggering in smart list

Go to solution
Highlighted
Level 10 - Community Moderator

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

If you look in your console, you'll see that form is nuil.

form is null because subscriber (Munchkin ID) "663-HBN-994" is not valid. You can see this in the response to getForm().

Highlighted
Anonymous
Not applicable

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

Hi Sanford, I know this must be like pulling teeth, but what do I put in the Muchkin id parameter within the js.

Highlighted
Level 10 - Community Moderator

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

That's your Munchkin Account ID.  You can see it under Admin >> Integration >> Munchkin.

Highlighted
Anonymous
Not applicable

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

Thats confusing as that is where I got the code from the start and is not working

Highlighted
Level 10 - Community Moderator

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

You need to use your Munchkin ID and an existing form ID in your instance.  That's the only thing stopping that code from working.  I'm not just speaking from memory -- I literally embedded that code in a webpage and it worked (or "worked" in quotes, given the other caveats).

Highlighted

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

Hi Matthew,

Please paste the URL of the Landing Page.

-Greg

Highlighted
Anonymous
Not applicable

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

Here is the munchkin code

pastedImage_0.png

And here is the form url

http://pages.nlc.com.au/2015-11-Customer-Survey_LP-Auto-redirect.html

Highlighted

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

Your code in the LP is :

<script src="//app-sj01.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>

So it's likely the code 2190 for the form ID is not correct.

Please check this then (go to the form in Marketo, then "form action -> embed code".

-Greg

Highlighted
Anonymous
Not applicable

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

This is the embed code for the form, it appears ok?

pastedImage_0.png

Highlighted

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

Yes it does, and all the codes are correct.

What is different in your JS and in the screen shots are the first lines:

The scr URL is not the same.

In your LP, it shows

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

in the screen shot, it's :

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

I a not sure it matters, but we should eliminate this, so please fix the LP.

-Greg