Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi – see this page on the plugin FAQ
    https://contactform7.com/support/faq/#Nothing_shows_up_in_the_email_even_after_adding_a_tag_to_the_form

    The important part is the code for the checkbox has to go in the right side of the form, in the lower section, as part of the message body box

    Also be aware you will only be told of the boxes that are checked, not the ones that are not checked.

    Thread Starter quadrinary

    (@quadrinary)

    Yes, i’m putting all my code in there. Everything works as planned except for the check boxes.

    In my contact form i’m defining my checkboxes by:
    [checkbox* PreferContactby: “E-mail” “Post”]

    I’ve tried these variations in the email portion:
    [PreferContactby: “E-mail” “Post”]
    [PreferContactby]

    It just ends up displayed in my email as “[PreferContactby]”

    [checkbox* PreferContactby: "E-mail" "Post"]

    it should be
    [checkbox* PreferContactby "E-mail" "Post"]

    colon is not necessary.

    Hi

    I just tested this. In the plugin’s form area I added it two ways

    <p>[checkbox* PreferContactby: "E-mail" "Post"]</p>
    <p>[checkbox* PreferContact "E-mail" "Post"]</p>

    In the Mail area I added them like this:

    <p>Prefer Contact By [PreferContactby:]</p>
    <p>Prefer Contact By [PreferContact]</p>

    (The text after <p> displays a message before the checkbox output in the email, so its clear which field is displaying.)

    Both of those methods worked correctly when I received the email.

    @stvwlf you’re right. It works. I meant that you should use [checkbox* PreferContactby “E-mail” “Post”] in form if you use [PreferContactby] in mail. So, you should use [checkbox* PreferContactby: “E-mail” “Post”] when you use [PreferContactby:] in mail. The important point is to use the same name in form and mail.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Contact Form 7] Checkbox results in email?’ is closed to new replies.