cforms II User Forum

Registration is currently disabled.
Guest

FAQs

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
Admin Email Checkbox Value
Admin Email Checkbox Value
September 12, 2012
12:08 am
Troy
Guest

How can I change the value returned in email for check boxes in cforms.

Example I have a form with 24 fields 21 of which are check boxes, the admin email comes in looking great except I dont like that a checked box returns a value of "on" and an unchecked box returns "-"

We use this for a sudo online test and it would be awesome for grading if it could set it as

Checked = Yes

Unchecked = No

September 13, 2012
12:41 am
Troy
Guest

Further investigation has led me to believe that maybe I should look at modifying what is written to the field_val field upon insert and update. I see where there are "on" and "-" so would a better solution be to modify the insert/update or transform on construction of the email? If it is modify the insert/update please let me know what file that is in, as I have been souring the source files with no luck.

October 12, 2012
2:29 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

a workaround could be to use checkbox-group and only add one checkbox, which can have a specific value.

November 21, 2012
12:29 am
theresa
Guest

Oliver said
a workaround could be to use checkbox-group and only add one checkbox, which can have a specific value.

how would you make a check box group required then?

November 21, 2012
9:47 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

you can't, checkboxes are always non mandatory, by design

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3714

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5311

Posts: 18673

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

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

Administrators: Oliver (6400), Nicky (3)