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
Hide and show field
July 4, 2009
11:50 am

Please replace the ??? with your data!

  • URL to the FORM: http://???
  • The browser used: ???
  • cforms version: ???
  • Your Wordpress version: ???

I would like to hide and show a field when i check a checkbox. After some research, I am lead to believe that javascript is the way to solve my problem. For arguments sake, the field I want to hide is called 'li-5-4' and I have already hidden it with display:none. How would I toggle the display attribute with javascript.

Thanks (great plugin by the way! Smile)

July 5, 2009
9:00 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

I recommend you get familiar with jQuery, they have tons of samples and documentation and will speed up your Javascript coding significantly.

December 27, 2010
4:17 pm

Is there a solution to this already?


I'd like to do the same.



Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
29 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: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

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

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

Administrators: Oliver (6400), Nicky (3)