cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Html emal template and checkbox group
November 20, 2007
9:06 pm

[desc]: First of all… awesome plugin!!

I have a little problem with checkbox groups.  As you can see i have a long form with some checkbox groups.

With the old version of the plugin the admin email doesn't work correctly. I couldn't see the chekbox if they're not selected and the email template was displaied not aligned, with irremediable lost of important data.

Now I updated to the latest version (6.1) and the email html template displays the form data correctly (without loosing anything;) but whithout the necessary formatting code to highlight the most important values.

My question is:

How is it possible to edit the current email html template? 

If it's not possible to change the current html email template…how can I display the checkbox data in the  non-Html email template?


{Form Name}= Name insert in the form
{Date}= Form date                                                                                {Page}= The page containing form
{IP}= Sender's Ip                                                                                       

And for chekbox groups??

Something like this?!?

(Name of the field) Sottilina:  (Value of checkbox1) {250gr. circa} (Value of checkbox2) {500gr circa} (Value of checkbox3) {1kg circa} 

No. Because this doesn't work :(

Could you help me?

Thanks. Pietro 

November 20, 2007
9:19 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Thank you Pietro for the detailed info.

The admin email message you can 100% customize and tailor to your needs. Simply uncheck "Include data…" and provide your very own HTML template (the body).

You should be able to use any HTML editor to do that, simply embed the input field variables in the proper places.

For check boxes, e.g. "Bonifico Bancario" simply add {Bonifico Bancario} in the right place, for "250gr. circa" it be {250gr. circa}

The variables are used the same for TXT and HTML part of the message.

If this is what you tried and it's not working, please send me a backup of your form and I'll double check.

Also, not sure if this is exactly what you wanted, but why not use a Radio Button instead of three check boxes for 250gr. circa, 500gr circa & 1kg circa. I assume the user should only select one, right?


EDIT: Sorry I missed that these are check box groups. The variable in this case would be the the field label only, which I think you omitted, hence it's not working (my guess).

November 21, 2007
4:37 pm

Hi Oliver!

Thanks for your quick support.

Unfortunately i'm not able to make it work correctly. :(

If i "Enable html" the admin email is displaying the form data with wrong formatting.

So i left the "admin html solution" and i tryed also a "non html" email template solution whitout success. This is what i have into cform admin:

And HERE you can find the Form Backup.

I hope to solve the situation with your help!



November 21, 2007
7:24 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005


I noticed that you still hadn't applied actual labels to the check box group fields. With the labels in place it works, e.g:

Sottilina#250gr. circa#500gr circa#1kg circa
Capocollo#250gr. circa#500gr circa#1kg circa
Casereccia#250gr. circa#500gr circa#1kg circa

With these in place you can setup your HTML admin message to look like, e.g.:

<table  width="400px" bgcolor="#d9e2ff">
    <tr><th align="left">Products of Interest</th><th align="left">Amounts</th></tr>

Which the email client would display as:

Products of Interest Amounts
Sottilina 250gr. circa,500gr circa
Capocollo 250gr. circa,500gr circa,1kg circa
Casereccia 1kg circa


Please note that there is currently a limitation when it comes to multiple input fields having the same label, e.g:

Size#250gr. circa#500gr circa#1kg circa
Size#350gr. circa#600gr circa#2kg circa
Size#450gr. circa#700gr circa#3kg circa

Only the last Size field will be in fact recorded. This will be fixed in v6.2, together with a n enhanced tracking view to support this:

Fieldset: Sottilina (10 € /Kg)

Size# 250gr. circa#500gr circa#1kg circa

Fieldset: Capocollo (20 € /Kg)

Size# 250gr. circa#500gr circa#1kg circa

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)