SOLVED

About Form 1.0 deprecation

Go to solution
MT
Level 1
Level 1

About Form 1.0 deprecation

Hi - I'm just now aware of the notification of Form 1.0 deprication as mentioned here. All the forms I have on the site so far use this:

<form method="post" action="https://app-sj07.marketo.com/index.php/leadCapture/save" id="form">, no web services or anything like that. 

 

The question is to ensure the forms continue to work now and in the future (after the deprecation), do I just need to change the action URL to https://app-sj07.marketo.com/index.php/leadCapture/save2 ?

 

Or do I need to do anything else.

Thanks for your input!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: About Form 1.0 deprecation


The question is to ensure the forms continue to work now and in the future (after the deprecation), do I just need to change the action URL to https://app-sj07.marketo.com/index.php/leadCapture/save2


No, that simple switch won't work for 2 reasons:

 

  1. The /save2 endpoint returns JSON to be acted upon by the Forms 2.0 library, not an HTTP redirect.
  2. The /save2 endpoint requires a hash of the fields, which you'd need to compute using JS.

 

What you'll need to do is switch to posting the form values using a hidden Marketo form.  A simple take on that is here: https://nation.marketo.com/t5/Marketo-Whisperer-Blogs/Make-a-Marketo-Form-Submission-in-the-backgrou...

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: About Form 1.0 deprecation


The question is to ensure the forms continue to work now and in the future (after the deprecation), do I just need to change the action URL to https://app-sj07.marketo.com/index.php/leadCapture/save2


No, that simple switch won't work for 2 reasons:

 

  1. The /save2 endpoint returns JSON to be acted upon by the Forms 2.0 library, not an HTTP redirect.
  2. The /save2 endpoint requires a hash of the fields, which you'd need to compute using JS.

 

What you'll need to do is switch to posting the form values using a hidden Marketo form.  A simple take on that is here: https://nation.marketo.com/t5/Marketo-Whisperer-Blogs/Make-a-Marketo-Form-Submission-in-the-backgrou...