Skip to main content
April 28, 2016
Question

Preventing gmail, hotmail etc on spark edition

  • April 28, 2016
  • 1 reply
  • 836 views

Hello,

I included this script in my template in order to prevent users from entering non-business addresses

http://developers.marketo.com/blog/restrict-free-email-domains-on-form-fill-out/

However it doesnt seem to work. The MktoForms2 element seems to be unavailable

Might this have to do with the fact that I have the spark edition?

Edit: Never mind, solved. Apparently you cannot place this script in the <head> tag, it needs to be at the bottom of the <body> tag

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

1 reply

Grégoire_Miche2
Level 10
April 28, 2016

Hi Erik,

The script have to be placed at the bottom of the page as it can only run once the form has be rendered.

In a Marketo LP, it has to be placed into a MktoForms2.whenReady

-Greg