Skip to main content
Level 3
Aug 17, 2023 10:37 AM UTC
Solved

Form on external site not redirecting

We have external developers creating a microsite for us but for some reason the Marketo forms we've created for them are not redirecting to the ungated version of the site and instead just display a thank you message, even though the form is set to redirect.

I'm guessing there's a conflict with some other code on the site they've created but is anyone able to see what it may be from this link?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Aug 17, 2023 5:30 PM UTC

The problem is in this external JS file which includes a custom onSuccess listener that returns false:

l && u && x && L && A.then(() =>{ MktoForms2.loadForm(`https://${ L }.marketo.com`, x, u, M=>{ M.render(MktoForms2.$(G.current)), M.submittable(r), M.onSuccess(() =>(j(!0), !1)) }) })

Note it’s quite irresponsible of your developer to minify & package JS like this if they need 3rd parties to help them with their code.

8 replies

Jasbirka
Level 6
Aug 17, 2023 10:53 AM UTC

Hi @trevlarrr, 

 

You have to remove the below code from your page and related JS as well.

 

 

Thanks!

Jasbir

Translate
trevlarrrAuthor
Level 3
Aug 18, 2023 9:10 AM UTC

Thanks @jasbirka apparently that is it but whatever they've used to build the site, that part of code is read-only so having to find a way to edit around it.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Aug 18, 2023 9:27 PM UTC

So they chose a 3rd-party site builder that doesn’t allow customization of Marketo form behaviors, only supporting on-page Thank You text? Pretty disappointing on a professional level, you have to be on top of this stuff.

 

I see the form doesn’t show at all right now because the Forms 2.0 library isn’t loading. Presumably they’re trying to handle Marketo forms themselves instead of trusting the 3rd party, which is the right move.

Translate
Level 2
Aug 17, 2023 12:59 PM UTC

Check for this solution, mentioned here with the same problem, this might help
https://nation.marketo.com/t5/product-discussions/form-not-redirecting-on-completion/m-p/185793#M133705

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Aug 17, 2023 1:02 PM UTC

Please try to provide something more helpful to the OP than simply restating their question.

Translate
Level 2
Aug 17, 2023 1:32 PM UTC

Sure, on reviewing the LP, I found the form itself has the setting for showing a success message on submit, you need to add the redirection on form level only.
"successTitle":"Thank you. ","successBody":"You'll now be redirected."

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Aug 17, 2023 5:30 PM UTC

The problem is in this external JS file which includes a custom onSuccess listener that returns false:

l && u && x && L && A.then(() =>{ MktoForms2.loadForm(`https://${ L }.marketo.com`, x, u, M=>{ M.render(MktoForms2.$(G.current)), M.submittable(r), M.onSuccess(() =>(j(!0), !1)) }) })

Note it’s quite irresponsible of your developer to minify & package JS like this if they need 3rd parties to help them with their code.

Translate