WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
broken checkbox - with fix (2 posts)

  1. cinemaduro
    Member
    Posted 2 years ago #

    Single checkboxes don't display properly (at all, really) in this version. (I'm not sure if multiples will)

    line 127 of \plugins\contact-form-7\modules\ckeckbox.php needs to be edited

    Change
    $html = '<span' . $atts . '>' . $html . '</span>';

    To:
    $html = '<input type="checkbox" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . ' />';

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

  2. cinemaduro
    Member
    Posted 2 years ago #

    Also, anyone else having trouble with this, be sure to add "choices" in the checkbox filed, otherwise you'll have validation errors and/or will get no value sent.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic