SOLVED

Multiple copies of same form on a page problems...

Go to solution
Anonymous
Not applicable

Hi,

using embedded 2.0 forms I've run into a problem with having multiple copies of the same form on the same page - I'd guess because they all have the same form ID.

My coworker - who runs our email marketing process - is looking to simplify how many forms he has to maintain and I'm investigating ways to help him do that We want to have a form with the same set of fields appear multiple times on our product pages, in a popup, in a sidebar, inline in the content etc...

What I'm seeing is:

  • the first form loads correctly
  • when the second instance loads it inserts a duplicate set of form fields into the first instance.
  • every further instance adds another copy of the fields to all other instances which have the the same ID  - eg  "mktoForm_1234".

Is there an easy way to work around this? Or should I just make multiple copies of the same form in the backend of Marketo, and he will have to update them all separately when a change is needed?

I'm aware I could be using the API to send and receive info - and bypass the whole problem - but I'd like to keep things simple for now.

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Simple enough. As demoed in earlier Community posts: MktoForms2 :: Same Form Multiple Times

Set the <FORM> tags as shown, adding the form ID to the data-formId attribute instead of the literal id attribute. The code will manage the attributes for you.

View solution in original post

12 REPLIES 12