Skip to main content
Level 2
Feb 24, 2021 10:55 PM UTC
Solved

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="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 app-sj07.marketo.com/index.php/leadCapture/save2 ?

 

Or do I need to do anything else.

Thanks for your input!

SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Feb 25, 2021 6:40 AM UTC

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 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-background/ba-p/246490

1 reply

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Feb 25, 2021 6:40 AM UTC

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 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-background/ba-p/246490

Translate