Skip to main content
Jason_Scott
Level 4
October 23, 2015
Question

Add token as string to submit button on form?

  • October 23, 2015
  • 2 replies
  • 1877 views

Is there a way to add a token or var to the end of the submit url on a form?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
October 23, 2015

Hi Jason,

What exactly are you trying to achieve?

If you want to add a parameter at the end of the follow-ip URL, this can be done using the Forms 2.0 API and a hidden section on your page that contains the token.

-Greg

Jason_Scott
Level 4
October 23, 2015

We need to carry a url variable from the page containing the marketo form to the subsequent page(s).

Grégoire_Miche2
Level 10
October 23, 2015

Hi Jason,

example #2 on this page : Forms 2.0 » Marketo Developers​ explains how to acheive this.

You can replace the location.href value by any fixed value or a value that you capture from the page containing Marketo.

Now, it may also be easier to do this using session cookies, especially if you want to carry this information on more than 2 pages.

-Greg