for RTP trackin I need to add an id to a form being used in a landing page. What's the best way to go about this? | Community
Skip to main content
June 2, 2014
Question

for RTP trackin I need to add an id to a form being used in a landing page. What's the best way to go about this?

  • June 2, 2014
  • 3 replies
  • 1001 views
I would just add to the html normally.
Barring that, I believe I could add it using jquery and targetting the submit button, change the button's id attr.
what's the best way to do this on a form that's being used in a landing page currently? 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
June 4, 2014
Hey Paul,

Is this a normal marketo form?  If so, you should be able to use the normal 'mktFrmSubmit' ID populated by default.
June 6, 2014
nope sorry to be unclear. the id needs to be on the submit button, according to RTP, but I dunno how to get it on there
Kenny_Elkington
Adobe Employee
Adobe Employee
June 6, 2014
If you have direct access to the html, you should be able to follow the standard method by adding an ID to the button like so:

<input type="button" value="Submit" id="id1 id2 id3"/>

If you don't, and can only add scripts to the page, an easy jQuery would be like this: 

$('element').attr('id', 'value');