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

Anonymous
Not applicable

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

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>
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

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

I may have answered this myself with the details on this page here:

http://developers.marketo.com/documentation/websites/forms-2-0/
Anonymous
Not applicable

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

Yes David. You will have to use Forms 2.0 Javascript API to dynamically change the thank you page.

Rajesh
SanfordWhiteman
Level 10 - Community Moderator

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

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.
Anonymous
Not applicable

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

Thanks everyone.