Change [checkbox] output in email from "on"?
-
Hi. I’m treating a checkbox a little differently and have a question about formatting the output from that box in the email message.
Instead of this:
[checkbox events id:events class:contactForm "CEREMONY" "DRINKS & LAWN GAMES" "RECEPTION"]
I’m using this, so that I can have a running total of the number of events that are checked:
<label for="events">the festivities for <a id="status"><font id="count" color="#ffbdb3">[count id:count 0]</font><font color="#ffbdb3"> events.</font></a></label> <input type="checkbox" name="event-ceremony" /> CEREMONY <input type="checkbox" name="event-drinks" /> DRINKS & LAWN GAMES <input type="checkbox" name="event-reception" /> RECEPTION
So, question 1) Is there a way to use the simple CF7 shortcode and still have a running total of events?
or, question 2) Can I use my existing code and change what appears in the email to “Yes” / “No”? Right now, this is what I have for the email shortcode:<strong>Ceremony</strong> [event-ceremony] <strong>Drinks & Lawn Games</strong> [event-drinks] <strong>Reception</strong> [event-reception]
And this is what see when I receive an email (I’ve checked the first two, and left the third blank):
Ceremony on
Drinks & Lawn Games on
Reception [event-reception]
- The topic ‘Change [checkbox] output in email from "on"?’ is closed to new replies.