Duplicate subscribe forms on same page and still have valid code

Hi,

How can I have more than one subscribe form on the same page for the same mailing list and still have W3C Valid code?  When I generate a subscribe form it usually gives me something like,

<label for="uddjy-uddjy">Email:</label><br /><input type="text" name="cm-uddjy-uddjy" id="uddjy-uddjy" />

The only problem is if I create another element that also has that same ID of uddjy-uddjy I break validation.

Any workarounds?

Thanks!

Mathew Mathew, 6 years ago

Hi,

You can actually change the IDs and the form will still work, as long as you do not change the name of any elements.

All good!


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
mibrenner, 6 years ago

Cool.  Thanks for the tip!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098