• I’m having this problem: I want to use CF7 to manage the form results and ideally the form fields. However, this form needs a very special way to be set in order to style it. Here’s a sample of the code I need to use:

    <input type="checkbox" value="my_value" class="regular-checkbox" id="checkbox-1-7"/><label for="checkbox-1-7"></label>

    however, no matter what I try, I get an extremely different output (spans aside, that’s not the issue exception of one), like the following:

    <span class="wpcf7-form-control-wrap suggest"><span id="checkbox-1-1" class="wpcf7-form-control wpcf7-checkbox regular-checkbox"><span class="wpcf7-list-item"><label><input type="checkbox" name="suggest[]" value="suggest" />&nbsp;<span class="wpcf7-list-item-label">suggest</span></label></span></span></span>

    The problem? I NEED the “label for” and I need the ID and class to be added to the checkbox, not a span as CF7 does

    The solution is (should) be very easy: I can simply add teh form as I have it in HTML5 and problem solved. However… how do I get the fields values sent by mail if I don’t create them using CF7?

    In short, I’d need help with ANY of the following, since any of them would fix the issue:
    1) How can I use a CF7 tag while using html code (no problem if I have to edit the plugin php since I’ll use CF7 checkboxes only for this)

    or

    2) How do I get the values from non CF7 created fields on the same CF7 mail as other fields?

    Just for reference, I’m using CF7 for other fields as well, the problem is only with these checboxes for styling reasons

    Any help really appreciated, thank you in advance ??

    https://www.ads-software.com/extend/plugins/contact-form-7/

  • The topic ‘Getting results from custom forms?’ is closed to new replies.