• Resolved mikeh

    (@mikehaberle)


    Hi all!

    I created a custom form using HTML, which is working pretty well with Contact Form 7, except for one issue: individual HTML checkboxes that *aren’t* checked are displaying as shortcodes in emails.

    To try to fix this, I checked the “Exclude lines with blank mail-tags from output”. Unfortunately, it doesn’t solve it.

    Is there a way to make this feature work with custom checkboxes?

    <label class=”lbl-class”><input type=”checkbox” name=”checkbox-name” value=”yes”><span>Checking this means “yes”</span></label>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mikeh

    (@mikehaberle)

    Bump

    Thread Starter mikeh

    (@mikehaberle)

    In case someone wants to know a non-ideal way to solve this —-

    Use hidden fields that get auto-filled on submit or when the checkbox is toggled. If it’s on submit, then you need to ensure your form won’t submit before the function runs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Checkboxes: Not Working W/ “Exclude lines with blank mail-tags”’ is closed to new replies.