Re: Addressing delay when grabbing the URL of web page a form was submitted on

Anonymous
Not applicable

Addressing delay when grabbing the URL of web page a form was submitted on

We are currently grabbing the URL of the web page a form is submitted on and using it to redirect the user to specific content, then treating them as a known user for downloading any additional content, but we are seeing that when the user becomes known if they click the download button on subsequent pages within a few seconds of landing on the page the URL is not updated for referring them to the proper page and they are taken to the default URL. Is there a way to address this issue without using a Marketo specific landing page?

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Addressing delay when grabbing the URL of web page a form was submitted on

You'll need to be more specific about how you're "grabbing" the URL.

If you populate a hidden field with the URL of the field hosting the form, then that field will be available in

  1. The Advanced Thank You URL choices in Form Editor
  2. The onSuccess Forms API event (as values.whateverFieldYoureUsing, where values is the first arg)

If the value is submitted to Marketo then it will always be available for use (synchronously) in 2. However, if you're using some other back-end process to populate the field then it certainly will not be available immediately as those updates are async.