Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] broken checkbox – with fix

  • cinemaduro

    (@cinemaduro)


    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/

Viewing 1 replies (of 1 total)
  • cinemaduro

    (@cinemaduro)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] broken checkbox – with fix’ is closed to new replies.