Topic RSS
9:37 am
Hello,
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
Marcin
3:23 am
(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(document).ready(function(){
jQuery.noConflict();
jQuery("#id_of_checkbox").change(function() {
jQuery("#id_of_text_field).show();
}); }; <script>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
Most Users Ever Online: 959
Currently Online:
97 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: 3548
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5157
Posts: 18385
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote









