Prefill on thank you page only works on refresh

Highlighted

Prefill on thank you page only works on refresh

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.

3 REPLIES 3
Highlighted
Level 10 - Community Moderator

Re: Prefill on thank you page only works on refresh

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).

Highlighted

Re: Prefill on thank you page only works on refresh

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?

Highlighted
Level 10 - Community Moderator

Re: Prefill on thank you page only works on refresh


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. 🙂