Form Pre-Fill Not Working on Country field

Anonymous
Not applicable

Form Pre-Fill Not Working on Country field

Hey community!

We are using the form pre-fill functionality and it is working on all of our fields except for the Country field. We are using native Marketo Forms and Landing Pages.

Does anyone have any ideas on why and how to fix this?

Thanks,
Hoi

8 REPLIES 8
SanfordWhiteman
Level 10 - Community Moderator

Re: Form Pre-Fill Not Working on Country field

Please move this to the Products section.  That's the Community Q&A area.

Make sure PreFill is enabled for the Country field in Form Editor.  Perhaps it was accidentally turned off.  If it is enabled, this shouldn't be happening unless you are using 2 different forms which use different widgets (for example, a number instead of a select) and/or different value lists. Please post a link to your LP and I can see what's up.

Anonymous
Not applicable

Re: Form Pre-Fill Not Working on Country field

Hey Sanford,

Thanks for the reply. I will move this to the Products section.

In the meantime, here is a link to our landing page:

Ghostery Trackermap

Thanks,

Hoi

Grégoire_Miche2
Level 10

Re: Form Pre-Fill Not Working on Country field

Hi Hoi,

Indeed it does not work. Have you checked the autofill is not disabled at form level as suggested by Sanford?

-Greg

Grégoire_Miche2
Level 10

Re: Form Pre-Fill Not Working on Country field

Also,

I entered the form with my email address (gregoire@inficiences.com). Could you check what is the country value in the lead database? It should be "France"

-Greg

Anonymous
Not applicable

Re: Form Pre-Fill Not Working on Country field

Your record does indeed say France.

I also just double checked and Form Pre-Fill is Enabled at the Form level, landing page level, and the admin level.

Grégoire_Miche2
Level 10

Re: Form Pre-Fill Not Working on Country field

Hi Hoi,

Check at the field level in the Form:

pastedImage_0.png

-Greg

Anonymous
Not applicable

Re: Form Pre-Fill Not Working on Country field

This is already checked, Greg.

Any ideas?

SanfordWhiteman
Level 10 - Community Moderator

Re: Form Pre-Fill Not Working on Country field

Found another bug in Forms 2.0.  Patch it like this:

<script>

MktoForms2.whenReady(function(form){ form.setValuesCoerced(mktoPreFillFields); });

</script>

Too busy to explain now, but that should do it.