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
cforms -> group of checkboxes, one of them is triggering appearing a text field
August 3, 2011
9:37 am


I would like to prepare form based on CForms:

1. Group of checkboxes, example:


How was the weather during your vacation?

o good         o bad           o other(check it to write what you want)


2. After checking last option "other" new text field should appears next to it to allow user to write his option.


Could you please advise me if it is possible in cforms and how to prepare such form?

many thanks in advance


August 13, 2011
3:23 am
Tim Meneely

(Should this be over in "Troubleshooting"?)


There might be simpler ways directly within cforms or PHP, but I did this kind of thing with jQuery. You'd need to check "

<script type="text/javascript">
	jQuery("#id_of_checkbox").change(function() { 

  I've only been doing this a couple of weeks and I might be all wrong, but that's the way I went.   Regards, Tim Meneely

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
27 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: 5359

Posts: 18741

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

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

Administrators: Oliver (6400), Nicky (3)