Submitting a form and redirecting without the javascript embed.

Anonymous
Not applicable

Submitting a form and redirecting without the javascript embed.

Hey there,

I have a plain HTML form on my site that looks something like this:

<form class="validate jvfloat-form" accept-charset="UTF-8" method="POST" enctype="multipart/form-data" action="http://app-sj01.marketo.com/index.php/leadCapture/save2">
                <input type="hidden" name="formVid" value="{{ study.marketo_id }}">
                <input type="hidden" name="formid" value="{{ study.marketo_id }}">
                <input type="hidden" name="munchkinId" value="{{ site.marketo }}">

It submits just fine and captures the lead, but the redirect is returning JSON. Is there a way to just have it redirect after submission?
Tags (1)
2 REPLIES 2
Benjamin_Ortiz1
Level 4

Re: Submitting a form and redirecting without the javascript embed.

Nice Profile Pic! 
Anonymous
Not applicable

Re: Submitting a form and redirecting without the javascript embed.

Okay so I've figured out that submitting to http://app-sj01.marketo.com/index.php/leadCapture/save with a field called "returnURL" does the trick.

It's kind of annoying having to specify the return url in both marketo and the form, is there anyway to avoid doing this?

Also is there documentation on what form 1.0 fields we can use?

Thanks!