Form Prefill Persist on refresh | Community
Skip to main content
Kele_Powell
New Participant
May 11, 2020
Solved

Form Prefill Persist on refresh

  • May 11, 2020
  • 1 reply
  • 4590 views

I am currently working on building a Subscription Center with a Marketo Landing page. The Subscription center has prefilled fields to show the lead what they are currently subscribed to. This all works well when a lead comes from an email, but if I refresh the page all the prefill fields are no longer prefilled.

I understand that this is by design with the Prefill update that happened in the latter half of 2019. 

Is it possible to correct this and allow the prefills to persist on page refresh? I am also hoping that this could serve as a dual purpose to allow a lead to navigate from an unsubscribe center instead. of having to come directly through an email. Something like Sanford's solution to https://blog.teknkl.com/pre-fill-any-site-any-form/ ?

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

Yes, use my code for this.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 11, 2020

Yes, use my code for this.

Kele_Powell
New Participant
May 11, 2020

@sanfordwhiteman Are the steps any different for using this for internal landing pages, and does it matter if I host your code in Marketo? Trying to implement your solution, I could not get the data to persist. It may also be that I put the script on the landing page in the incorrect place. http://na-sj31.marketo.com/lp/538-CCU-524/pref_test.html

 

Also if I wanted to have this work going from the unsubscribe page to the preference page, would I need to add the DTO helper code to both pages?

SanfordWhiteman
New Participant
May 11, 2020

Just treat the Marketo LP as if it were an external page — nothing special should be done.

 

Using the DTO ensures portability, so if you move to an external website nothing has to change.

 

Your sample DTO has a non-matching domain name (you left the default example.com).