cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




display fields only if checkbox is filled

Add a New Topic Reply to Post
Post

Zerbil - Guest

11:52 pm - July 4, 2008

Please replace the ??? with your data!

  • Your URL: http://???
  • The browser used: ???
  • cforms version: 8.5.1
  • Your Wordpress version: 2.5

[desc]:
_Hi ;)

Users of my website use a form to receive a report by e-mail (pdf) or by classic postal mail and i would like that postal mail fields appear only if users check a checkbox before.

Didn't find in the forum with my poor english if it's possible or not and how to do it if possible. Could someone help me and put me on the right way ?

Thanks alot ;)

Oliver - Admin

2:40 pm - July 5, 2008

posts 2790

Search for jQuery in this forum.

Essentially what you do is, add all possible form fields to the form.

Add jQuery at startup that hides certain 'optional' form fields and use jQuery event handlers to sit ontop of e.g. a checkbox to (when enbaled) show these previsouly hidden fields...quite simple.

Add a New Topic Reply to Post


Reply to Topic: display fields only if checkbox is filled

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 2 + 9        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)