AnsweredAssumed Answered

Can my form have a dynamic submission Redirect URL based on a query var?

Question asked by Marketo User on Jul 18, 2019
Latest reply on Jul 18, 2019 by Sanford Whiteman

I have multiple landing pages with forms that redirect to a specific page, but I'd like to set up a lead form for general use. Is it possible to pass a URL in a querystring to my Marketo landing page and have that used as the Redirect URL on submit? For example:


1. User arrives on


2. Website checks if they are being referred from Marketo and redirects them to it if not:


3. That query var (redirect_url) is used as the form submission redirect URL. 


4. They submit the form and are redirected back to the page they were originally trying to access.


5. The server checks if they are being referred from and grants them access to the page if so