SOLVED

Re: Marketo form - only can type numbers in form

Go to solution
Anonymous
Not applicable

Marketo form - only can type numbers in form

Has anyone else encountered this issue before? I embedded a Marketo form on a page within our website for driving leads. Sometimes when visiting the form you can only type numbers in the form fields. The form also has a 0 in it when this happens. Please note this form only has two fields, full name and email. When you refresh the page the form acts as expected. I have created and embedded Marketo forms before and never had this happen. Any help would be appreciated!

You can find the form here, under the results tab....

Tax Return Estimator | Calculate your tax refund | TaxSlayer

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo form - only can type numbers in form

Because you have a keyDown event listener on all inputs that match the selector

input:not(.allowInput), textarea, select

blocking non-numeric input.

This of course matches the fullName field.

The only reason it appears to work after a refresh (which isn't always true, only sometimes) is because you have a race condition, so it's possible for the Marketo form to be finished loading after the keyDown event binding, in which case the newly injected form fields won't be restricted.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo form - only can type numbers in form

Because you have a keyDown event listener on all inputs that match the selector

input:not(.allowInput), textarea, select

blocking non-numeric input.

This of course matches the fullName field.

The only reason it appears to work after a refresh (which isn't always true, only sometimes) is because you have a race condition, so it's possible for the Marketo form to be finished loading after the keyDown event binding, in which case the newly injected form fields won't be restricted.

Anonymous
Not applicable

Re: Marketo form - only can type numbers in form

Thanks Sanford! I will apply the change today and try it out.