Form implemented as script - setting a form-specific thank you page? | Community
Skip to main content
March 24, 2015
Question

Form implemented as script - setting a form-specific thank you page?

  • March 24, 2015
  • 4 replies
  • 1152 views
I've inherited a deployment where forms are implemented as scripts (see below) - is there a way to set a per-reg page thank you page in this model?  Or do I have to create a unique version of the form for every registration page where I want to re-direct to a thank you page?

(As it is now, we're not actually setting a thank you page - just sending an autorespond email and reloading the page after form completion.)


<div id="form-holder-1">
<script src="//app-xxxx.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1016"></form>
<script>MktoForms2.loadForm("//app-xxxx.marketo.com", "xxx-xxx-xxx", 1016);</script>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

March 24, 2015
I may have answered this myself with the details on this page here:

http://developers.marketo.com/documentation/websites/forms-2-0/
March 25, 2015
Yes David. You will have to use Forms 2.0 Javascript API to dynamically change the thank you page.

Rajesh
SanfordWhiteman
Level 10
March 25, 2015
This is a demo I created in response to a similar Community question (can't find the original question right now but the import was the same): http://jsfiddle.net/sanford/45x2562z/show/

The demo shows the customization of a base Thank You page based on user's form field selection.  It can be easily adapted to customize the Thank You based on the reg page's URL or any other factor.  Just capture the TY in the onSuccess and change/augment it however you want.
March 25, 2015
Thanks everyone.