Prefill on thank you page only works on refresh | Community
Skip to main content
Crystal_Pacheco
New Participant
October 10, 2020
Question

Prefill on thank you page only works on refresh

  • October 10, 2020
  • 1 reply
  • 3639 views

Hi there,

I've been using Sanford's prefill script which is very powerful and works great. The only issue is Marketo isn't fast enough to capture the form values on the follow up page after successful form submit. I always have to refresh the page in order to see the prefill form values or {{lead.tokens}} populate correctly. It's bad user experience to have to refresh the page or see empty values like Welcome _____ not you?  
Is there a way we could check whether or not the form field values are coerced on the thank you page before completing page load for the thank you page? I'm not sure what to do or what approach to use.

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

1 reply

SanfordWhiteman
New Participant
October 11, 2020

Two options:

 

1) Retry the DTP if a matching email address isn't immediately found. Recheck every 250ms for up to 6 times, for example (= 1.5s) before giving up.

 

2) Forward the form values to the follow-up page (in the URL).

Crystal_Pacheco
New Participant
October 13, 2020

Thanks for your response. The retry is the solution I was hoping for as I believe it would be the most beneficial in the long run.

1 ) You would do the "retry" on the confirmation page, where you "receive" the dtp? 
How would you do it so its not visible to the user?
Fill out form - - - - Check if lead info is present by Retry - - - Confirmation page with proper information displayed = success! Can you help me with this piece as it requires changing the dtp code?

SanfordWhiteman
New Participant
October 13, 2020

Fill out form - - - - Check if lead info is present by Retry - - - Confirmation page with proper information displayed = success! Can you help me with this piece as it requires changing the dtp code?

It's just reloading the pre-fill page in the background (not the whole page) so nothing is visible.  Ask Justin N. about it. 🙂