WordPress.org

Forums

Contact Form 7 Honeypot
[resolved] Multiple honeypots on the same page - Error (6 posts)

  1. Will
    Member
    Posted 1 year ago #

    First of all, this is great plugin which I use on all my WordPress contact forms.

    The current issue is that when using the honeypot on more than one form on a page, the input ID generated is the same for every instance (email-wpcf7-hp). I'd like to see a way to generate a unique ID for the honeypot so that it won't cause html errors with multiple IDs on the same page. Is there a way to do this?

    http://wordpress.org/plugins/contact-form-7-honeypot/

  2. Ryan
    Member
    Plugin Author

    Posted 1 year ago #

    Hey willage, thanks for bringing that to my attention. There really shouldn't be an ID in there at all.

    I've just updated the plugin (v1.3) to be more respectful of using both the user-defined name for the element's identification as well as moving that from an ID attribute to a CLASS attribute.

    Please let me know if that sorts things out for you, and if so, please mark the topic resolved. Cheers.

  3. Will
    Member
    Posted 1 year ago #

    Thanks Ryan, works great!

  4. Will
    Member
    Posted 1 year ago #

    Hi Ryan,

    I actually just noticed that this fix created another error. The "for" attribute on the label needs to be associated with an ID on an input. Since there is no longer an ID, the label is invalid.

    Thanks again for looking into this.

    Will

  5. Ryan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Will, try the latest version, it should correct this.

  6. Will
    Member
    Posted 1 year ago #

    Great, thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Honeypot
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic