• Resolved Wilbertx

    (@wilbertx)


    Hi,

    We recently discovered this problem after an update from CF7 or post-my-contact-form-7. When the form is displayed on a page a select element is correctly populated with the chosen taxonomies, but if it is a checkbox or radio button field it stays empty and only the label is visible on the form.

    I debugged the code and in cf7-2-post-script.php line 167
    $cf7Form.find(‘span.<?php echo $form_field?> span.wpcf7-radio’).html(fname);
    to find the right place in the html to insert, the $form_field should be used as a data-name property on the span element and not as a class. If I change the line into
    $cf7Form.find(‘span[data-name=<?php echo $form_field?>]’).html(fname);
    the taxonomies are displayed as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkboxes and Radio buttons not populated with taxonomy’ is closed to new replies.