WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Modules
[resolved] Render the fields twice (7 posts)

  1. keypanda
    Member
    Posted 1 year ago #

    After the last update, it renders the fields twice on all my sites.
    For example [hidden a_field id:a_field "1"] outputs:
    <input id="a_field" class="wpcf7-hidden" type="hidden" value="1" name="a_field">
    <input id="a_field" class="wpcf7-hidden" type="hidden" value="1" name="a_field">

    Is it a bug or it is my sites?

    Thanks

    http://wordpress.org/extend/plugins/contact-form-7-modules/

  2. joel_birch
    Member
    Posted 1 year ago #

    I'm seeing this also.

  3. releaf
    Member
    Posted 1 year ago #

    I'm also seeing this behavior.

    I was able to get around it by creating a normal text field and then assigning it a class that sets it to display:none; However, that defeats the point of this plugin.

  4. keypanda
    Member
    Posted 1 year ago #

    I commented this line out in the plugin to solve the problem:

    $html .= '<input type="hidden" name="' . $raw_name . '" value="' . esc_attr( $value ) . '"' . $atts . ' />'."\n";

    Don't understand why it is needed.

  5. Andrew Tibbetts
    Member
    Posted 1 year ago #

    I am getting doubles as well. Luckily, I'm only checking the value, not using or printing it.

  6. Markus Amalthea Magnuson
    Member
    Posted 1 year ago #

    Seeing this too. It seemed to have been introduced in 1.3.1, but why? Adding the second line seems intended, so I guess there was a reason for it.

  7. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    This is fixed in 1.3.2 - there was a reason for it, but I should have checked to see if the name of the field had changed.

    Anyway, it's fixed in the version just released.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic