About Form 1.0 deprecation | Community
Skip to main content
Level 2
February 24, 2021
Solved

About Form 1.0 deprecation

  • February 24, 2021
  • 1 reply
  • 3309 views

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!

Best answer by SanfordWhiteman

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
SanfordWhitemanAccepted solution
Level 10
February 25, 2021

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