cformsII Support Forum
Current User: Guest Login Register
Please consider registering

Search Forums:


 






Checkbox group validation? Want no submission unless one is checked.

Add a New Topic Reply to Post
Post
Guest

Tayana Jacques

7:21 pm October 16, 2008

  • URL to the FORM: http://hypertension.stemdev.com/chep/ids/ids-mail-request/
  • The browser used: safari, firefox, ie
  • cforms version: 8.7
  • Your Wordpress version: 2.2.1

Hi, just wanted to thank you for this extremely powerful tool. The post-processing is my favorite thing to use.

I'm not having any issues with cformsII and have read the FAQs. I just was wondering if there was any way I could make this form show an error message, like the "required" message, letting the user know they MUST check at least one of the checkboxes.


I tried using post-processing to do that, printing a message that says to go back and check at least one document. I just don't want the form to be submitted at all, unless one of those checkboxes is clicked, though.


Does anyone know of a way to do this? I'm not sure if this can be done with a checkbox group?


Thanks in advance!

Tayana

Admin

Oliver

Munich, Germany

9:56 pm October 16, 2008

posts 5889

check box groups can't be required, for that you'd have to use a multi-drop-down box

Member

mores

11:15 am June 30, 2009

posts 21

So this is not possible at all? Not even with some magic in my-functions.php?


Oh dear … 

Admin

Oliver

Munich, Germany

7:30 am July 1, 2009

posts 5889

anything can be coded, but it'd have to be custom code in the corms core – and I certainly wouldn't consider this a core feature as it would work against the nature of check boxes, which are inherently optional.

just like radio buttons of which one (in a group) is required, with a preselected first button.


a general note: please be aware that cforms is under GPL. now while for 99% of the users this only means: no costs, free source code and a community (or at least the author) maintaining it, it also comes with certain (legal) obligations around code modifications (in a nut shell: make sure to follow the custom code documentation process outlined by GPL).

No Tags
Reply to Post


Reply to Topic:
Checkbox group validation? Want no submission unless one is checked.
PLEASE READ THE FAQs FIRST! THANK YOU.

Guest Name (Required):

Guest Email (Required):

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

Smileys
lol offended sad ??? yell cry frown kiss surprised wink innocent smile oops cool
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
12 + 2
   




About the delicious:days forum

Currently Online:

89 Guests

Membership:

There are 800 Members

There have been 2203 Guests

There is 1 Admin

There are 3 Moderators