Skip to main content
Level 1
Jul 13, 2022 5:59 PM UTC
Solved

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jul 13, 2022 7:22 PM UTC

1 reply

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Jul 13, 2022 7:22 PM UTC