Custom Form Not Loading Unless Cookied | Community
Skip to main content
Jessica_Biblis
New Participant
November 9, 2016
Solved

Custom Form Not Loading Unless Cookied

  • November 9, 2016
  • 2 replies
  • 2572 views

We just launched a new email preference center, but we are running into an issue where the form does not load on the page unless the lead hitting it is cookied. Wondering if anyone else has had this problem or has any recommendations on how to fix. You can check it out here: www1.articulate.com/email-preferences.html

Thanks in advance for any help!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

What Kenny said, but it's even worse because you have a dependency on $ (the core jQuery object) in code within a Marketo Forms RTA that might run before jQuery is loaded.

This is a picture-perfect race condition and your developer needs to rethink the implementation.

A classic mistake is thinking that two asynchronus processes will still complete in the order in which they were invoked, when the definition of async is that they may complete in either order.

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
November 9, 2016

What Kenny said, but it's even worse because you have a dependency on $ (the core jQuery object) in code within a Marketo Forms RTA that might run before jQuery is loaded.

This is a picture-perfect race condition and your developer needs to rethink the implementation.

A classic mistake is thinking that two asynchronus processes will still complete in the order in which they were invoked, when the definition of async is that they may complete in either order.

Jessica_Biblis
New Participant
November 9, 2016

Thank you! I'll pass this along to the dev and hope we can come up with a solution.

Kenny_Elkington
New Participant
November 9, 2016

There appears to be some custom script embedded which is failing when mktoPrefillFields is undefined, as when someone visits a landing page as an unknown lead.  The variable isn't being checked to see if it exists which is throwing an exception and appears to be breaking your form.  I'd either remove this code or have your developer update it to check properly.

Jessica_Biblis
New Participant
November 9, 2016

Thanks, Kenny! That is helpful. I'll let the dev know, and I may be back with more questions.