Support » Plugin: Easy Forms for Mailchimp » two copies of same form in a page

  • Can I not have same form shortcode used twice on a page? I get below warnings in chrome console. How can this be avoided?

    [DOM] Found 2 elements with non-unique id #subscriber-form-1: (More info: https://goo.gl/9p2vKq) <form id=​"subscriber-form-1" class=​"yikes-easy-mc-form yikes-easy-mc-form-1  form" method=​"POST" data-attr-form-id=​"1">​…​</form>​ <form id=​"subscriber-form-1" class=​"yikes-easy-mc-form yikes-easy-mc-form-1  form" method=​"POST" data-attr-form-id=​"1">​…​</form>​
    (index):1 [DOM] Found 2 elements with non-unique id #yikes-easy-mc-form-1-EMAIL: (More info: https://goo.gl/9p2vKq) <input id=​"yikes-easy-mc-form-1-EMAIL" name=​"EMAIL" placeholder=​"Email Address" class=​"yikes-easy-mc-email field-no-label" required=​"required" type=​"email" value>​ <input id=​"yikes-easy-mc-form-1-EMAIL" name=​"EMAIL" placeholder=​"Email Address" class=​"yikes-easy-mc-email field-no-label" required=​"required" type=​"email" value>​
    (index):1 [DOM] Found 2 elements with non-unique id #yikes-easy-mc-form-1-FNAME: (More info: https://goo.gl/9p2vKq) <input id=​"yikes-easy-mc-form-1-FNAME" name=​"FNAME" placeholder=​"First Name" class=​"yikes-easy-mc-text field-no-label" required=​"required" type=​"text" value>​ <input id=​"yikes-easy-mc-form-1-FNAME" name=​"FNAME" placeholder=​"First Name" class=​"yikes-easy-mc-text field-no-label" required=​"required" type=​"text" value>​
    (index):1 [DOM] Found 2 elements with non-unique id #yikes-mailchimp-associated-list-id-1: (More info: https://goo.gl/9p2vKq) <input type=​"hidden" name=​"yikes-mailchimp-associated-list-id" id=​"yikes-mailchimp-associated-list-id-1" value=​"6a8dd06ba3">​ <input type=​"hidden" name=​"yikes-mailchimp-associated-list-id" id=​"yikes-mailchimp-associated-list-id-1" value=​"6a8dd06ba3">​
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @csine,

    You can have the same form twice on a page but we have some duplicated IDs which will throw these errors. There shouldn’t be any affect on the functionality of the forms though: both of them should work as expected.

    The errors are a known issue that’s difficult to fix given how ubiquitous our ID fields are.

    Sorry about that.

    Let us know if you experience any issues with subscribing via the forms.

    All the best,
    Kevin.

    I checked online and found creating two forms would fix the issue. I did that, and partially fixed the issue with text field duplicates, but not with checkbox items. My form also has checkbox list, and the list items are having same id, across different forms.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Okay that’s definitely an issue with the plugin. However, are you seeing any functionality being affected by this?

    no, subscription is fine… I have not checked the saving of interest checkboxes though

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.