SOLVED

The same form multiple times on a page but with different IDs within the forms

Go to solution
gebf
Level 1

The same form multiple times on a page but with different IDs within the forms

I am currently using the MktoForms2 API to use a single form multiple time on a page. I am able to embed a form multiple times with the following:
<form class="mktoForm" data-formid="1218"></form>

But since the same form is being used multiple times, the IDs inside the forms end up being the same so the page has multiple of the same ids. For example, the page now has multiple of this tag: <label  id="LblFirstName" class="mktoLabel mktoHasWidth movetop" style="width: 100px;"></label> so the id "LblFirstName" shows up multiple times.

Is there a way for the forms to have unique IDs for all the elements within the form?

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: The same form multiple times on a page but with different IDs within the forms

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: The same form multiple times on a page but with different IDs within the forms