Hello everyone.
I want to validate my website but it’s not valid and the problem is I use the same Mailchimp Form in 2 different places in my template files. (in wide screens the main section form appears and in narrow screens the sidebar form appears) and as you know MC forms used ID. So validator give me Duplicate ID error.
It looks like you already know the problem and it sounds like you will need to change the ID and/or name value used on the second form. How can we help you do that?
You may need to provide us with a URL to your code page, or possibly post the full code in the form of a “working page” in your next post.
You can post the code by preceeding it with three backticks alone on one line, then pasting your code, then closing with three more backticks alone on one line. Like this:
Thanks for your reply ronpat.
Yes, I need to change the ID attribute in one of the Mailchimp forms but I think it could make errors in processing the values posted to Mailchimp via the form. My assumption is true ?
Actually I don’t mind IDs for styling purpose, but aren’t those required for back end functionality. I mean, if I remove them anyone who add their email address in that input, will be added to my list in MC panel ?
Thanks Mittineague.
It seems there’s no other way around so I should delete one of the forms. Unfortunately when coding the theme I didn’t thought about Duplicate IDs, validation etc. Now I’m going to delete sidebar form.