How to specify redirect URL when submitting a form

Michael_Prasuhn
Level 1

How to specify redirect URL when submitting a form

With the old forms it was possible to set the redirect URL by setting the 'returnURL' field as documented here. Is there a similar way to handle redirects with Forms 2.0? We have some forms that are having to be duplicated many times just to change the redirect URL, and it'd be much easier to just specify the redirect page/URL when embedding the form, or with Javascript on the page where it's embedded.
Tags (1)
3 REPLIES 3
Kenny_Elkington
Marketo Employee

Re: How to specify redirect URL when submitting a form

Hey Michael,

You can do this with the Forms 2.0 API.  Example 2 on this page does just that: http://developers.marketo.com/documentation/websites/forms-2-0/
Josh_Hill13
Level 10 - Champion Alumni

Re: How to specify redirect URL when submitting a form

Why would you not use the Page level redirect?
Kenny_Elkington
Marketo Employee

Re: How to specify redirect URL when submitting a form

Josh, I believe this is because they're utilizing the same embed code for many pages, and want to be able to specifiy the followup on a per page basis.  Setting this up as a page level redirect would not allow them to have different followups for each page it is deployed on.